Re: syntax for functions used in the fq parameter

2011-08-31 Thread Chris Hostetter
: Why doesn't " AND text:foo" fill this requirement? or fq=text:foo (if you don't want it to affect scoring, and it sounds like you don't) But since you asked: if you want to use functions in "fq" you have to tell solr to parse it as a function. There are a variaty of options... https://wiki

Re: syntax for functions used in the fq parameter

2011-08-26 Thread Erick Erickson
Why doesn't " AND text:foo" fill this requirement? Best Erick On Fri, Aug 26, 2011 at 2:27 PM, Jason Toy wrote: > I'm trying to limit my data to only docs that have the word 'foo' appear at > least once. > I am trying to use: > fq=termfreqdata,'foo'):[1+TO+*] > > but I get the syntax error: > Ca

syntax for functions used in the fq parameter

2011-08-26 Thread Jason Toy
I'm trying to limit my data to only docs that have the word 'foo' appear at least once. I am trying to use: fq=termfreqdata,'foo'):[1+TO+*] but I get the syntax error: Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered " ":" ": "" at line 1, column 33. Was expecting one o