I guess you can try specifying your search as a filter query e.g.
q=blablafq=X:blabla, which will give back only the exact match.
On Jan 31, 2008 7:23 PM, Jörg Kiegeland [EMAIL PROTECTED] wrote:
Normally I do substring-queries on my field named X. Now however I also
require exact-match
I guess you can try specifying your search as a filter query e.g.
q=blablafq=X:blabla, which will give back only the exact match.
I tried this syntax in may Firefox URL field, however seems not to help.
How do I specify a filter query with Solrj (i.e. using SolrQuery)?
Disclaimer: I've only been working (evaluating) Solr for three weeks.
I had exactly this issue, and I found that using a field of type string gave
exact matches. So, if you need to do both substring and exact match queries,
you'll need two fields. One non-tokenized field using class StrField and
On Jan 31, 2008 10:26 AM, Jörg Kiegeland [EMAIL PROTECTED] wrote:
I guess you can try specifying your search as a filter query e.g.
q=blablafq=X:blabla, which will give back only the exact match.
I tried this syntax in may Firefox URL field, however seems not to help.
How do I specify a
Sorry, this method will not work with tokenized fields I guess. Andy's
approach is the standard in this case, however Yonik's method should also
work.
As for specifying filter queries with SolrJ, use
SolrQuery.addFilterQuery(String
filterQuery) to specify filter queries in code.
On Jan 31, 2008