Re: "Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-10 Thread Erik Hatcher
Another thought is to index each paragraph as a separate document, though you'd of course have to see how that fits with your other searching needs. Erik On Aug 8, 2006, at 12:25 PM, Laurent Hoss wrote: Hi Suppose having an Index containing Lucene documents, having multiple fiel

Re: "Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-09 Thread Chris Hostetter
: > You could do this with the current query parser by putting large : > position increment gaps between paragraphs that is guaranteed to be : > larger than the largest paragraph. Then you could use a sloppy phrase : > query : > "word1 word2"~1 for instance. : Unfortunatelly this only makes s

Re: "Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-09 Thread Laurent Hoss
Yonik Seeley wrote: On 8/8/06, Laurent Hoss wrote: Suppose having an Index containing Lucene documents, having multiple fields (equally) named 'paragraph'. Now I want to make a "Field Grouping" query (described in: http://lucene.apache.org/java/docs/queryparsersyntax.html ) "paragraph:( word1 A

Re: "Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-08 Thread Chris Hostetter
: That would also score documents higher the closer together the words : appeared (which may or may not be desirable). if it's not desirable, it could be "fixed" by overriding the sloppyFreq method of your Similarity. -Hoss -

Re: "Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-08 Thread Yonik Seeley
On 8/8/06, Laurent Hoss <[EMAIL PROTECTED]> wrote: Suppose having an Index containing Lucene documents, having multiple fields (equally) named 'paragraph'. Now I want to make a "Field Grouping" query (described in: http://lucene.apache.org/java/docs/queryparsersyntax.html ) "paragraph:( word1 AN

"Field Grouping" query restrained to same field on a 'multi'-field'

2006-08-08 Thread Laurent Hoss
Hi Suppose having an Index containing Lucene documents, having multiple fields (equally) named 'paragraph'. Now I want to make a "Field Grouping" query (described in: http://lucene.apache.org/java/docs/queryparsersyntax.html ) "paragraph:( word1 AND word2 )" retrieving only documents where the