lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Luke browser does not show non-String Solr fields?
Date Mon, 31 May 2010 16:52:39 GMT

: 1. Queries like "id:123" which work fine in /solr/admin web interface but
: returns nothing in Luke. Query "*:*" returns all records fine in Luke. I
: expect Luke returns the same result as /solr/admin since it's essentially
: a Lucene query?

you haven't told us what fieldtype you are using for the "id" field -- but 
i'm going to go out on a limb and guess it's TrieIntFieldType (or possibly 
a SortedIntFieldType) ... those field types encode their values  in such a 
way that they sort lexigraphicaly and produce faster range queries -- if 
Luke doesn't kow about that special encoding, it can search on them (or 
even display the terms properly)

Luke has a "view terms" feature right? ... look at the raw terms in your 
"id" ifeld and i bet you'll see they look nothing like numbers -- and 
that's why you can search on them as numbers in Luke

(when you serach on them in Solr, SOlr knows about your schema, and knows 
about your field types, and can do the proper encoding/decoding)


View raw message