Re: reverse lookup

2004-08-02 Thread prolog_tutor
John, You might take a look at a patch I submitted to lucene-dev this morning (http://issues.apache.org/bugzilla/show_bug.cgi?id=30429) . It's aimed at pseudo-relevance feedback, so it automatically adds terms from an initial answer set to a query, but of course you can do whatever you want with t

Re: search exception in servlet!

2004-08-02 Thread Sergiu Gordea
Probably it will be a good idea to provide the stack trace of the error you get. It's a little bit hard to guess the error in the code you provided. Sergiu xuemei li wrote: hi,all I am using lucene to search.It works fine before I put the code into the doPost of servlet.But after that it will th

Re: reverse lookup

2004-08-02 Thread Erik Hatcher
On Aug 1, 2004, at 10:25 PM, John Adam wrote: Is there a way to get most significant words of a document if i give a document number. Have a look at the term vector support new in v1.4. For a document number and field name, you get terms and frequencies: TermFreqVector vector = rea

Re: multiple field search

2004-08-02 Thread Daniel Naber
On Monday 02 August 2004 08:04, Toby Tremayne wrote: > That said, I still haven't worked out how to search using > multiple fields yet so any help would be greatly appreciated. You need to build a BooleanQuery which contains e.g. TermQuerys, one TermQuery per field. To increase/decre

search exception in servlet!

2004-08-02 Thread xuemei li
hi,all I am using lucene to search.It works fine before I put the code into the doPost of servlet.But after that it will throw exception when I use servlet. This is the exception sentence: IndexSearcher searcher = new IndexSearcher(indexPath); hits=searcher.search(query);

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