RE: Search for a term in all fields

2007-02-21 Thread Chris Hostetter
: Well, here's my current thoughts on acheiveing this. Instead of putting : a 1000 space gap between elements of the 1ll field could I not use a : character that isn't used in the data such as ~ and then somehow (don't : know how) use that to search all fields? you could certianly introduce an a

Re: Search for a term in all fields

2007-02-21 Thread Erick Erickson
SpanNearQuery. Well, what I meant was instead of using a gap of 1000 what I was thinking is could we not replace that gap of a 1000 characters with a ~. Then, if this is possible what I was wondering is whether there is a way of performing searches using the ~. Cheers Sachin -Original Mes

RE: Search for a term in all fields

2007-02-21 Thread Kainth, Sachin
ing is could we not replace that gap of a 1000 characters with a ~. Then, if this is possible what I was wondering is whether there is a way of performing searches using the ~. Cheers Sachin -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: 21 February 2007 13:05 T

Re: Search for a term in all fields

2007-02-21 Thread Erick Erickson
Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: 20 February 2007 18:30 To: java-user@lucene.apache.org Subject: Re: Search for a term in all fields The information Erick gave you when you asked this question yesterday is all very accurate -- the one addition i would make is that you do

RE: Search for a term in all fields

2007-02-21 Thread Kainth, Sachin
--- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: 20 February 2007 18:30 To: java-user@lucene.apache.org Subject: Re: Search for a term in all fields The information Erick gave you when you asked this question yesterday is all very accurate -- the one addition i would make is that you don&

Re: Search for a term in all fields

2007-02-20 Thread Chris Hostetter
The information Erick gave you when you asked this question yesterday is all very accurate -- the one addition i would make is that you don't need SpanNear queries to take advantage of positionINcrimentGap -- PhraseQueries do that to. Consolidating your fields into a single "all" field, or constr

Re: Search for a term in all fields

2007-02-20 Thread karl wettin
20 feb 2007 kl. 13.29 skrev Kainth, Sachin: How do I search for a term in all fields of a document? You create a boolean query with a term query for each field available in the document you are searching for.