This was my problem:
fieldType name=int class=solr.TrieIntField omitNorms=true/
I had taken my queu from Nutch's schema:
fieldType name=long class=solr.LongField omitNorms=true/
On Sat, Jul 9, 2011 at 4:55 PM, Yonik Seeley yo...@lucidimagination.comwrote:
Something is wrong with your
I'm trying to filter a query by the value of a numeric field. I can do it in
Java as follows, but I don't know how to do it with the query syntax, and I
found no documentation of it.
@Test
public void testFqWc() throws Exception {
IndexSearcher searcher = wc();
*Filter wc3 =
Hu? It's describe in the link Ahmet's given you.
I'm trying to filter a query by the value of a numeric field. I can do it
in Java as follows, but I don't know how to do it with the query syntax,
and I found no documentation of it.
@Test
public void testFqWc() throws Exception {
I don't get it to work!
If I specify no fq I get the first result with int name=wc256/int
With wc:[255 TO 257] (fq=wc%3A%5B255+TO+257%5D) nothing comes out.
On Sat, Jul 9, 2011 at 12:29 PM, Markus Jelsma
markus.jel...@openindex.iowrote:
Hu? It's describe in the link Ahmet's given you.
I'm
I don't get it to work!
If I specify no fq I get the first result with int
name=wc256/int
With wc:[255 TO 257] (fq=wc%3A%5B255+TO+257%5D) nothing
comes out.
If you give us the Full URL you are using, it can be helpful.
Correct syntax is fq=wc:[255 TO 257]
You can use more that fq in a
http://localhost:8080/solr/select?indent=onversion=2.2q=*%3A**
fq=wc%3A%5B255+TO+257%5D*
start=0rows=10fl=*%2Cscoreqt=wt=xmlexplainOther=hl.fl=
The toString of the request:
{explainOther=fl=*,scoreindent=onstart=0q=*:*hl.fl=qt=wt=xmlfq=wc:[255+TO+257]rows=1version=2.2}
Even when the
Something is wrong with your indexing.
Is wc an indexed field? If not, change it so it is, then re-index your data.
If so, I'd recommend starting with the example data and filter for
something like popularity:[6 TO 10] to convince yourself it works,
then figuring out what you did differently in