Re: Search in all fields

2007-02-20 Thread Erick Erickson
dexed. Because if this is so then we still have the problem of doubling the index size. -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: 19 February 2007 19:02 To: java-user@lucene.apache.org Subject: Re: Search in all fields Sure. Convert your simple querie

RE: Search in all fields

2007-02-20 Thread Kainth, Sachin
-Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: 19 February 2007 19:02 To: java-user@lucene.apache.org Subject: Re: Search in all fields Sure. Convert your simple queries into span queries (which are also relatively simple). Then, when you index everything in

Re: Search in all fields

2007-02-19 Thread Erick Erickson
Sure. Convert your simple queries into span queries (which are also relatively simple). Then, when you index everything in the "all" field, subclass your analyzer to return a large PositionIncrementGap. Explaining how this works with words is awkward, so doc.add("all", "one two three"); doc.a

Re: search in all fields

2007-01-18 Thread karl wettin
18 jan 2007 kl. 09.54 skrev David: Hi all: I study Lucene and I want build search on all the fields, I find MultiFieldQueryParser can search on multiple fields, but we must specify fields. maybe we can add a field named all_field that contain all the fields when indexing, but it make t

Re: search in all fields

2007-01-18 Thread John Song
Here is my experience of getting a good search relevancy: pre processing is paramount. Pre process your data and using perl is much powerful and flexible then putting all the logic in a customized analyzer. And if you want to search multiple fields, create a field called "all" and cat all the