exact matches not possible?

2008-01-31 Thread Jörg Kiegeland
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

Re: exact matches not possible?

2008-01-31 Thread Shalin Shekhar Mangar
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

Re: exact matches not possible?

2008-01-31 Thread Jörg Kiegeland
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)?

Re: exact matches not possible?

2008-01-31 Thread Andy Blower
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 somehow? -- View this message in context: http://www.nabble.com/exact-matches-not--possible--tp15205318p15206164.html Sent from

Re: exact matches not possible?

2008-01-31 Thread Yonik Seeley
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

Re: exact matches not possible?

2008-01-31 Thread Shalin Shekhar Mangar
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