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 8
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=blabla&fq=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
I guess you can try specifying your search as a filter query e.g.
q=blabla&fq=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)?
d. However
> these are much too much, since I know there is exactly one document
> matching "blabla" on field X exactly.
> One solution would be to filter the search result for exact-matches on
> client side - however can I shift this filtering to Solr someho
I guess you can try specifying your search as a filter query e.g.
q=blabla&fq=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 q
Normally I do substring-queries on my field named X. Now however I also
require exact-match queries, however I do not know how to do this!
If I do
X:"blabla"
or
X:blabla
.. all documents containing "blabla" in field X are returned. However
these are much too much, since I know there is exa