lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: solr error, cannot run PhraseQuery
Date Mon, 02 Jul 2012 12:34:08 GMT
> http://172.17.100.16:8888/solr/collection1/select?q=name:(4U
> OR Cabs)^12.8
> category:(4U OR Cabs)^1.6 subcategory:(4U OR Cabs)^0.4
> description:(4U OR
> Cabs)^0.1
> 
> the above query is throwing the the following error
> 
> field "subcategory" was indexed with
> Field.omitTermFreqAndPositions=true;
> cannot run PhraseQuery (term=4)
> 
> 
> 
> subcategory field in schema.xml is like this
> 
> <field name="subcategory" type="text_en" required="true"
> multiValued="true"/>

omitTermFreqAndPositions="true" is an option that field types can have. Positions are required
for phrase queries. Do you have this option set in type="text_en" definition?

Mime
View raw message