02 2014 档案
摘要:http://stackoverflow.com/questions/2526407/complex-query-with-sphinx比如要实现和如下sql代码相同的功能:SELECT * FROM table WHERE yescolumn = 'query' AND othercolumn not like '%keyword%'You can use Sphinx's extended query syntax to pick the fields you want to search. Try running a query through S
阅读全文
摘要:hadoop是基于java的,framework已经搭好,任务的执行主要是三个阶段Map-> Shuffle-> Reduce自己要建新任务,只需要重写map和reduce方法即可。
阅读全文
摘要:Indexing: include the date column in the sql_query of source.Also set the date as sql_attr_unitPHP: $cl->SetFilterRange ( $attribute, $min, $max, $exclude=false )
阅读全文
摘要:1) alt+ f22) input "gnome-terminal"3) press "enter"
阅读全文
摘要:1, look at the sphinx.person.address.conf to see how to configure the conf file2, index the database using conf file. the format is as below: indexer --config sphinx.person.address.conf --all3, search something for fun. format as below: search --config sphinx.person.address.conf Slovenia
阅读全文
摘要:http://www.oschina.net/question/84274_11938http://www.ibm.com/developerworks/library/os-php-sphinxsearch/1)主要配置sphinx-min.conf.ini这个文件,在里边改成自己的mysql的服务器信息,然后重命名为sphinx.conf然后放到bin这个文件夹下。2)用cmd进入bin目录下,index文件indexer --config sphinx.conf --all3)在bin目录下,输入searchd --config sphinx.conf既启动了sphinx4) try s
阅读全文
摘要:package com.hereyouare.KickBall;import android.app.Activity;import android.app.AlertDialog;import android.app.Service;import android.content.Context;import android.content.DialogInterface;import android.content.SharedPreferences;import android.graphics.Bitmap;import android.graphics.BitmapFactory;im
阅读全文
摘要:1)下载wamp服务器。使用php来开发2)配置mysql服务器,主要把原来已有的数据导入到wamp服务器的mysql。改mysql的my.ini里德datadir的地址即可,将datadir设为已有数据所在的地址。3)在wamp服务器的www文件夹下编写php脚本,用php搭建网站后台操作mysql取数据显示数据的代码。最后记得工作完成后将工作机上的代码拷到自己的电脑上。
阅读全文
摘要:1)编辑脚本script.sql如下ALTER TABLE `table_name` ADD FULLTEXT (`column_name`)2)在mysql console下输入命令SOURCE f:/script.sql即可。3)搜索时的sql query如下: select * from TB_NAME WHERE MATCH(col1, col2) AGAINST ('search_words');
阅读全文
摘要:1)将一个txt文本(msg.txt)复制到开发目录的asset文件夹下。2)用getAssets().open()可以得到一个输入流。注意getAssets方法必须用在Activity下边。如果不是一个activity而只是一个普通class,则要将context传递到class里,然后再用getAssets()。public myClass(Context myContext) { AssetManager mngr = myContext.getAssets(); InputStream is = mngr.open("textdb.txt");}3)得到inputs
阅读全文
摘要:使用solr的DIH (data import handler) 可以操作后台数据库,前端solr自带的search ui (localhost:8983/solr/collection1/browse) 自带生成xml文件,在搜索结果的页面底端。
阅读全文
摘要:solr使用apache的velocity来定义UI,在solr的search ui的基础上更改即可,主要改\example\solr\collection1\conf\velocity里的文件。详情可见http://crackedtownship.blogspot.com/2012/07/customize-apaches-solr-ui-using.html
阅读全文