lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: _version_ as LongPointField returns error
Date Mon, 12 Jun 2017 16:41:19 GMT

just replying to some comments/discussion in general rather then 
individual msgs/sentences..

* uninversion/FieldCache of *singlevalued* Points fields was fixed in SOLR-10472

* currently a bad idea to use indexed="true" Points for _version_ due to SOLR-10832

* AFAICT it's a good idea (in general, regardless of type) to use 
indexed="true" docValues="true" for _version_ (once SOLR-10832 is fixed) 
to ensure VersionInfo.getMaxVersionFromIndex doesn't make core 
load/reloads (and CDCR aparently) slow.



: Date: Mon, 12 Jun 2017 12:32:50 -0400
: From: Yonik Seeley <yseeley@gmail.com>
: Reply-To: solr-user@lucene.apache.org
: To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
: Subject: Re: _version_ as LongPointField returns error
: 
: On Mon, Jun 12, 2017 at 12:24 PM, Shawn Feldman <shawn.feldman@gmail.com> wrote:
: > Why do you need doc values though?  i'm never going to sort by version
: 
: Solr needs a quick lookup from docid->_version_
: If you don't have docValues, Solr tries to create an in-memory version
: (via the FieldCache).  That's not yet supported for Point* fields.
: 
: -Yonik
: 
: > On Mon, Jun 12, 2017 at 10:13 AM Yonik Seeley <yseeley@gmail.com> wrote:
: >
: >> I think the _version_ field should be
: >>  - indexed="false"
: >>  - stored="false"
: >>  - docValues="true"
: >>
: >> -Yonik
: >>
: >>
: >> On Mon, Jun 12, 2017 at 12:08 PM, Shawn Feldman <shawn.feldman@gmail.com>
: >> wrote:
: >> > I changed all my TrieLong Fields to Point fields.  _version_ always
: >> returns
: >> > an error unless i turn on docvalues
: >> >
: >> >   <fieldType name="long" class="solr.LongPointField"/>
: >> >   <field name="_version_" type="long" indexed="true" stored="true" />
: >> >
: >> > Getting this error when i index.  Any ideas?
: >> >
: >> >
: >> >  Remote error message: Point fields can't use FieldCache. Use
: >> > docValues=true for field: _version_
: >> > solr2_1    |    at
: >> >
: >> org.apache.solr.update.processor.DistributedUpdateProcessor.doFinish(DistributedUpdateProcessor.java:973)
: >> > solr2_1    |    at
: >> >
: >> org.apache.solr.update.processor.DistributedUpdateProcessor.finish(DistributedUpdateProcessor.java:1912)
: >> > solr2_1    |    at
: >> >
: >> org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.finish(LogUpdateProcessorFactory.java:182)
: >> > solr2_1    |    at
: >> >
: >> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:78)
: >> > solr2_1    |    at
: >> >
: >> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
: >> > solr2_1    |    at
: >> org.apache.solr.core.SolrCore.execute(SolrCore.java:2440)
: >> > solr2_1    |    at
: >> > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723)
: >>
: 

-Hoss
http://www.lucidworks.com/

Mime
View raw message