Re: 1:n queries again

2008-11-13 Thread Christian Reuschling
Hello Eric, our use case is to match feature vectors extracted from pictures in a performant way with Lucene. For this, interesting points of a picture will be derived, and each of them is described by an own vector. So we have one picture, but several feature vectors (1:n) When I now want to se

Re: 1:n queries again

2008-11-12 Thread Erick Erickson
Note that the SpanQuery family are Querys, so they can be used as clauses of a BooleanQuery just fine. Making this work will be exciting... <<>> I'm having trouble understanding the use case. I don't understand how the user can make sense of this, but then it may well be unique to your problem sp

Re: 1:n queries again

2008-11-12 Thread Christian Reuschling
Hello Erick, thank you very much for this interesting idea - but I'm not sure that the SpanQuery will make every aspect I search for. I think the lack is that in the case of a PhraseQuery (and I think also in the case of the SpanQuery, but I'm not sure about yet), every term must appear inside th

Re: 1:n queries again

2008-11-12 Thread Otis Gospodnetic
Christian, If I understand your situation correctly, you should look at sloppy phrases and at Span family of queries. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch From: Christian Reuschling <[EMAIL PROTECTED]> To: java-user@lucene.apache

Re: 1:n queries again

2008-11-12 Thread Christian Reuschling
But this is not the same - Lucene makes it transparent for you whether you have one or several field entries for one attribute. The behaviour will be the same in both of these cases: Lucene document entry: attName: "term1 term2" attName: "term3 term4" or attName: "term1 term2 term3 term4" For th

Re: 1:n queries again

2008-11-12 Thread Erick Erickson
It's entirely unclear to me whether facets could help, since I haven't used them, I've seen these mentioned on the SOLR user list, it may bear investigating. To expand on Stefan's point. I think his solution will work for you quite well, but there are a couple of tricks The first thing to und

Re: 1:n queries again

2008-11-12 Thread Stefan Trcek
On Wednesday 12 November 2008 14:58:53 Christian Reuschling wrote: > In order to offer some simple 1:n matching, currently we create > several, counted attributes and expand our queries that we search > inside each attribute, e.g.: I use one attribute (Field) multiple times. Stefan -