On 4/4/2011 3:21 PM, Brian Lamb wrote:
I just noticed Juan's response and I find that I am encountering that very
issue in a few cases. Boosting is a good way to put the more relevant
results to the top but it is possible to only have the correct results
returned?
Only what's already been said in the thread. You can simulate a
non-phrase non-wildcard search, forced to match all within the same
value of a multi-valued, by using phrase queries with slop. And it will
only return hits that have all terms within the same value -- it's not a
boosting solution.
But if you need wildcards, or you need to find an actual phrase in the
same value as additional term(s) or phrase(s), no, you are out of luck
in Solr.
That is, exactly what Juan said, he already said exactly this.
If someone can think of a clever way to write some Java to do this in a
new query component, that would be useful. I am not entirely sure how
possible that is. I guess you'd have to make sure that ALL matching
tokens or phrases are within the positionIncrementGap of each other, not
sure how feasible that is, I'm not too familiar with Solr/Lucene
source. But at any rate, there's no way to do it out of the box with
Solr, no.