What is the difference between the AND and + operator?

2010-11-29 Thread yang Yang
What is the difference between the AND and + operator? ALso,what is the difference between a query and a filter? For example String[] fields={name,address,classId}; If I want to search the document whose classId is '4 and whose name or address contain Zhongzhou Road No 200,I can use two manner:

Re: lucene anchor-distance based search

2010-11-18 Thread yang Yang
BWT,for some condition-required search I can make the condition as a filter and then filter the result. Also I can build a BooleanQuery according to the condition just like the code in the range search,I wonder which is better? 2010/11/18 yang Yang m4ecli...@gmail.com Thank you very much

lucene anchor-distance based search

2010-11-17 Thread yang Yang
We are using the hibernate search which is based on lucene as the search engine to build a full text search for our position-related data in the MYSQL db. This is the main structure of the table(it save the id,coordinate and name of one Surface_Feature): +++-++ | id

Re: lucene anchor-distance based search

2010-11-17 Thread yang Yang
approaches there are for the same. Have a look at the contrib module in lucene. http://wiki.apache.org/lucene-java/SpatialSearch For your understanding, you could have a look at the bounding box approach. -- Anshum Gupta http://ai-cafe.blogspot.com On Thu, Nov 18, 2010 at 7:38 AM, yang Yang

does lucene support Database full text search

2010-09-10 Thread yang Yang
Hi: I am using MySql,and I want to use the full text search is rather weak. So I use the Sphinx,however I found it can not support Chinese work searching prefectly. So I wonder if Lucene can work better?