Re: Permutations of entries in a multivalued field

2015-12-21 Thread Johannes Riedl
ecember 18, 2015 2:27 PM To: solr-user Subject: Re: Permutations of entries in a multivalued field The other thing to check is the ComplexPhraseQueryParser, see: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser It uses the Span queries to build up

RE: Permutations of entries in a multivalued field

2015-12-18 Thread Allison, Timothy B.
Duh, didn't realize you could set inOrder in Solr. Y, that's the better solution. -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, December 18, 2015 2:27 PM To: solr-user Subject: Re: Permutations of entries in a multivalued field

Re: Permutations of entries in a multivalued field

2015-12-18 Thread Erick Erickson
The other thing to check is the ComplexPhraseQueryParser, see: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser It uses the Span queries to build up the query... Best, Erick On Fri, Dec 18, 2015 at 11:23 AM, Allison, Timothy B. wrote: > Hi Joh

RE: Permutations of entries in a multivalued field

2015-12-18 Thread Allison, Timothy B.
Hi Johannes, I suspect that Scott's answer would be more efficient than the following, and I may be misunderstanding the problem! This type of search is supported at the Lucene level by a SpanNearQuery with inOrder set to false. So, how do you get a SpanQuery in Solr? You might want to l

Re: Permutations of entries in a multivalued field

2015-12-18 Thread Scott Stults
Johannes, I think your best bet is to create a QParserPlugin that orders the terms of the incoming query. It sounds like you have control over the way that field is indexed, so you could enforce the same ordering when the document comes into Solr. If that's not the case then you'll also want to wr

Permutations of entries in a multivalued field

2015-12-16 Thread Johannes Riedl
Hello all, we are facing the following problem: we use a multivalued string field that contains entries of the kind A/B/C/, where A,B,C are terms. We are now looking for a simple way to also find all permutations of A/B/C, so e.g. B/A/C. As a workaround we added a new field that contains all e