lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Chheng <>
Subject filter querying working on dynamic int fields but not dynamic string fields?
Date Wed, 20 Jan 2010 21:27:13 GMT
I'm having trouble doing a filter query on a string field. Any ideas why 
it's working on dynamic int fields but not dynamic string fields?

http://localhost:8983/solr/select?indent=on&version=2.2&q=climate - correct

FQ with dynamic int field returns one result - correct

returns zero results - Incorrect

In my schema.xml, i setup dynamic fields like this:
<dynamicField name="*_i"  type="int"    indexed="true"  stored="true"/>
<dynamicField name="*_s"  type="string"  indexed="true"  stored="true"/>

In my index, i have a record like which should have matched the last query:
<str name="id">9987644</str>
<int name="awardedamounttodate_i">88900</int>
<str name="awardinstrument_s">Continuing grant </str>
<str name="abstract_t">Abstract  ATM-987644  Zeng, Ning  University of 
California, Los Angeles  Title: Hierarchical Modeling of 
Vegetation-Climate ....</str>

This is the query debug section:
<lst name="debug">
<str name="rawquerystring">climate</str>
<str name="querystring">climate</str>
<str name="parsedquery">text:climat</str>
<str name="parsedquery_toString">text:climat</str>
<lst name="explain"/>
<str name="QParser">LuceneQParser</str>
<arr name="filter_queries">
<str>awardinstrument_s:Continuing grant</str>
<arr name="parsed_filter_queries">
<str>+awardinstrument_s:Continuing +text:grant</str></arr>

View raw message