Re: Query or FilterQuery for exact field match

2010-02-23 Thread Chris Hostetter
: I read that, but I'm outside of the typical usage I believe (as I have : no additional parameters so I'm not getting a subset): in my case it : seems the result would be in the queryResultCache anyway if I do a : normal search , or am I missing something? youre not missing anything -- each of t

Re: Query or FilterQuery for exact field match

2010-02-16 Thread gabriele renzi
On Tue, Feb 16, 2010 at 2:04 PM, NarasimhaRaju wrote: > Hi, > > using filterQuery(fq) is more efficient because SolrIndexSearcher will make > use of filterCache > and in your case it returns entire set from the cache instead of searching > from the entire index. > more info about solrCaches at

Re: Query or FilterQuery for exact field match

2010-02-16 Thread NarasimhaRaju
, P.N.Raju, From: gabriele renzi To: solr-user@lucene.apache.org Sent: Tue, February 16, 2010 11:54:24 AM Subject: Query or FilterQuery for exact field match Hi everyone, in our app we sometimes use solr programmatically to retrieve all the elements that have a

Query or FilterQuery for exact field match

2010-02-16 Thread gabriele renzi
Hi everyone, in our app we sometimes use solr programmatically to retrieve all the elements that have a certain value in a single-valued single-token field ( brand:xxx). Since we are not interested in scoring this results, I was thinking that maybe this should be performed as a filterQuery (fq="br

Re: exact field match

2009-01-26 Thread Svein Parnas
Another solution is to put a special token in front and end of every occurence of the field, eg aastartaa in front an zzendzz in the end (a solution looking like Fasts boundary match feature behind the hood), You could then search for exact match ("aastartaa your phrase zzendzz"), and you w

Re: exact field match

2009-01-26 Thread Antonio Zippo
it works... thanks for your help bye Da: Erick Erickson A: solr-user@lucene.apache.org Inviato: Lunedì 26 gennaio 2009, 20:29:17 Oggetto: Re: exact field match You need to index and search using something like KeywordAnalyzer. That analyzer does no

Re: exact field match

2009-01-26 Thread Erick Erickson
You need to index and search using something like KeywordAnalyzer. That analyzer does no tokenizing/ data transformation or such. For instance, it doesn't fold case. You will be unable to search for "bond" and get a hit in this case, so one solution is to use two fields, and search one or the othe

exact field match

2009-01-26 Thread Antonio Zippo
Hi all, i'm using a string field named "myField" and 2 documents containing: 1. myField="my name is james bond" 2. myField="james bond" if i use a query like this: myField:"james bond" it returns 2 documents how can i get only the second document using a string or text field? I need to sea