Reputation: 2784
Is there a way to tell SOLR to search for (for example) 80% of the phrase "term1 term2 term3 term4"
will yeild documents with at least 3 terms.
Extra question - if such logic exists - will it work with proximity : "term1 term2 term3 term4"~15
specifically, tried to do that with SOLR.NET
var queries = new List<ISolrQuery>();
//filling the list...
new SolrMultipleCriteriaQuery(queries, SolrMultipleCriteriaQuery.Operator.OR);
when I ran that got SolrNet.Exceptions.InvalidFieldException
Upvotes: 0
Views: 185
Reputation: 2564
When working with Solr directly, this is supported. I am not familiar with Solr.NET though, can anyone comment on whether this feature is supported by that client?
Upvotes: 1
Reputation: 4712
No, but you can find the query in such way:
text:(term1 term2 term3) OR text:(term1 term2 term4) OR text:(term1 term3 term4) OR text:(term2 term3 term4)
The code to generate this kind of query is pretty simple
Upvotes: 1