Re: Having common word in the search

2004-08-02 Thread Kelvin Tan
I think the answer really really depends on the query input source, and user-savvy. If the source is a web-based form AND users only enter "basic" searches, then lucenequeryconstructor.js in sandbox does an adequate job of building complex queries from a simple form. Alternatively, just use javasc

Re: Having common word in the search

2004-08-02 Thread Sergiu Gordea
I have the same problem. Right now I think is not possible to do what you want by using MultifieldQueryParser. Right now I iplemented a query normalization for our product, but I consider that the best way is to take the source code and to implement: Query q = MultiFieldQueryParser.parse(line,fi

Having common word in the search

2004-08-02 Thread lingaraju
Dear All Searcher searcher = new IndexSearcher("C:/index"); Analyzer analyzer = new StandardAnalyzer(); String line="curry asia"; line=line+"recipe"; String fields[] = new String[2]; fields[0] = "title"; fields[1] = "contents"; Query q = MultiFieldQueryParser.parse(line,fields,analyzer); Hits