Hi Upayavira,

I edited the definition of tint to have a precisionStep=0 for DateDep 
(i.e.: departure date). This field is used as filter query and also used in
faceted search.

The following are definitions:

        
        <fieldType name="tint" class="solr.TrieIntField" precisionStep="0"
positionIncrementGap="0"/>

   <field name="DateDep" type="tint" indexed="true" stored="true"
docValues="true" default="0" required="true"/>

The following is the log message after I executed a query:


INFO  - 2015-08-05 08:19:52.090; org.apache.solr.core.SolrCore; [db-mssql]
webapp=/solr path=/select
params={facet=true&group.ngroups=true&sort=Price+asc&facet.mincount=1&facet.limit=800&wt=jason&group.facet=true&rows=30&debugQuery=true&facet.sort=count&q=*:*&group.field=nSoftVoyageCode&facet.field=DateDep&facet.field=HotelCode&facet.field=Collection&facet.field=GatewayCode&facet.field=StarRating&facet.field=MealplanCode&group=true&fq=GatewayCode:(YYZ+OR+BUF+OR+YVO+OR+YYT+OR+YBG+OR+YAM)&fq=DestCode:(FPO+OR+AUA+OR+VRA+OR+CCC+OR+MBJ+OR+CMW+OR+CYO)&fq=DateDep:([20150820+TO+20150920]+OR+[20150720+TO+20150820])&fq=Duration:(2+OR+4+OR+6+OR+12+OR+13)}
hits=584 status=500 QTime=27 
ERROR - 2015-08-05 08:19:52.091; org.apache.solr.common.SolrException;
null:org.apache.solr.common.SolrException: Exception during facet.field:
DateDep
        at org.apache.solr.request.SimpleFacets$2.call(SimpleFacets.java:563)
        at org.apache.solr.request.SimpleFacets$2.call(SimpleFacets.java:549)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at org.apache.solr.request.SimpleFacets$1.execute(SimpleFacets.java:503)
        at
org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:573)
        at
org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:260)
        at
org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:84)
        at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:222)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:780)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:368)
        at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
        at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
        at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
        at
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Type mismatch: DateDep was
indexed as NUMERIC
        at
org.apache.lucene.search.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:1161)
        at
org.apache.lucene.search.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:1145)
        at
org.apache.lucene.search.grouping.term.TermGroupFacetCollector$SV.setNextReader(TermGroupFacetCollector.java:130)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:612)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:297)
        at
org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:475)
        at
org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:413)
        at org.apache.solr.request.SimpleFacets$2.call(SimpleFacets.java:557)
        ... 37 more








--
View this message in context: 
http://lucene.472066.n3.nabble.com/TrieIntField-not-working-in-Solr-4-7-tp4220744p4220980.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to