Re: Multi field search with values

2012-03-14 Thread Deb Lucene
Hi Ian, thanks a lot for your idea. Yes, it is working now. thanks again --d On Wed, Mar 14, 2012 at 11:52 AM, Ian Lea wrote: > It the keywords are already in the document body (field "content") I > don't see what you gain by indexing them separately and using MFQP. > But that isn't what you a

Lucene 4 - POS and Syntactic Tagging

2012-03-14 Thread Mark McGuire
I'm working on a project where I need to tag both the part of speech and other syntactic information on tokens so that this information is searchable. I have read the threads on the mailing list regarding part of speech tagging here

Re: Multi field search with values

2012-03-14 Thread Ian Lea
It the keywords are already in the document body (field "content") I don't see what you gain by indexing them separately and using MFQP. But that isn't what you are asking. To add a threshold to the query do something like this: BooleanQuery bq = new BooleanQuery(); Query qm = build existing quer

Multi field search with values

2012-03-14 Thread Deb Lucene
Hi Group, I am working on a Lucene search solution for multiple fields. So far, if the fields are of string type I am having no difficulties in retrieving using the MultiFieldQueryParser. For example, my indexing and searching logic look like this - indexing - I am indexing a corpus on the conten

Re: combine results from multiple queries & sort

2012-03-14 Thread Jamie
Li Many thanks for the tip. I used the searchWithFilter approach and its working brilliantly!! For the benefit of others, the solutions as follows: TermsFilter idFilter = new TermsFilter(); for (String id : ids) { idFilter.addTerm(new Term("uid",id)); } searcher.search(query,idFilter,

Re: TO Mike McCandless : ToParentBlockJoinQuery inconsistent return

2012-03-14 Thread Michael McCandless
On Wed, Mar 14, 2012 at 5:17 AM, Jean-Marc MORAS wrote: > ð  Ok now I have seen the mention of that on  ToParentBlockJoinQuery class > java doc > > ð  This java doc specify : "At search time you provide a Filter > * identifying the parents, however this Filter must provide > > * an {@link Fix

Re: combine results from multiple queries & sort

2012-03-14 Thread Li Li
it's a very common problem. many of our users(including programmers that familiar with sql) have the same question. comparing with sql, all queries in lucene are based on inverted index. fortunately, when searching, we can providing a Filter. from source codes of function searchWithFilter we can

RE: TO Mike McCandless : ToParentBlockJoinQuery inconsistent return

2012-03-14 Thread Jean-Marc MORAS
ð Ok now I have seen the mention of that on ToParentBlockJoinQuery class java doc ð This java doc specify : "At search time you provide a Filter * identifying the parents, however this Filter must provide * an {@link FixedBitSet} per sub-reader." How to insure/test that a

combine results from multiple queries & sort

2012-03-14 Thread Jamie
Greetings! First off, I realize Lucene is a search engine and therefore does not possess many of the features of a database. That being said, I have encountered a particular use case where I need to lookup potentially thousands of records in a Lucene index based upon an ID (a String field in