Hi,

I am searching the indexes with facet query. Below is the query.

q=Answer&version=2.2&start=0&rows=10&indent=on&qt=dismaxrequest&facet=true&facet.field=productPrice_product_str_s:[0%20TO%2020]

It is giving me an exception saying:

str name="exception">org.apache.solr.common.SolrException: undefined field
productPrice_product_str_s:[0 TO 20] at
org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:994) at
org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:152) at
org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:182)
at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:96)
at
org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:70)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:169)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute

Can someone please guide me, how to prevent this exception. I guess, I am
missing some entries in some config file like solrConfig or schema. I would
appreciate if someone can tell me the specific entries, I need to make in
any config file.

Thanks a lot.

Thanks,
Amit Garg
-- 
View this message in context: 
http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22615577.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to