[
https://issues.apache.org/jira/browse/SOLR-6024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267630#comment-14267630
]
Elran Dvir commented on SOLR-6024:
----------------------------------
Hi All,
I am trying to apply this patch on Solr 4.8.
I have compilation problems with the class DocValuesStats.
I get the following errors:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on
project solr-core: Compilation failure: Compilation failure:
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[88,21]
cannot find symbol
[ERROR] symbol: method emptySortedSet()
[ERROR] location: class org.apache.lucene.index.DocValues
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[116,28]
cannot find symbol
[ERROR] symbol: method emptySortedSet()
[ERROR] location: class org.apache.lucene.index.DocValues
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[128,28]
cannot find symbol
[ERROR] symbol: method emptySorted()
[ERROR] location: class org.apache.lucene.index.DocValues
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[139,34]
method lookupOrd in class org.apache.lucene.index.SortedSetDocValues cannot be
applied to given types;
[ERROR] required: long,org.apache.lucene.util.BytesRef
[ERROR] found: int
[ERROR] reason: actual and formal argument lists differ in length
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[165,55]
cannot find symbol
[ERROR] symbol: method getGlobalOrds(int)
[ERROR] location: variable map of type
org.apache.lucene.index.MultiDocValues.OrdinalMap
[ERROR]
/D:/ckp/src/solr_4.8/solr/core/src/java/org/apache/solr/request/DocValuesStats.java:[183,55]
cannot find symbol
[ERROR] symbol: method getGlobalOrds(int)
[ERROR] location: variable map of type
org.apache.lucene.index.MultiDocValues.OrdinalMap
I guess these methods are implemented in newer versions of Solr/lucene.
How can I fix it in 4.8?
What is the oldest version the patch can be applied to?
Thank you very much.
> StatsComponent does not work for docValues enabled multiValued fields
> ---------------------------------------------------------------------
>
> Key: SOLR-6024
> URL: https://issues.apache.org/jira/browse/SOLR-6024
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.8
> Environment: java version "1.7.0_45"
> Mac OS X Version 10.7.5
> Reporter: Ahmet Arslan
> Assignee: Tomás Fernández Löbbe
> Labels: StatsComponent, docValues, multiValued
> Fix For: 4.10.1, 5.0, Trunk
>
> Attachments: SOLR-6024-branch_4x.patch, SOLR-6024-trunk.patch,
> SOLR-6024-trunk.patch, SOLR-6024-trunk.patch, SOLR-6024-trunk.patch,
> SOLR-6024-trunk.patch, SOLR-6024.patch, SOLR-6024.patch
>
>
> Harish Agarwal reported this in solr user mailing list :
> http://search-lucene.com/m/QTPaoTJXV1
> It is east to re-produce with default example solr setup. Following types are
> added example schema.xml. And exampledocs are indexed.
> {code:xml}
> <field name="cat" type="string" indexed="true" stored="true"
> docValues="true" multiValued="true"/>
> <field name="popularity" type="int" indexed="true" stored="false"
> docValues="true" multiValued="true"/>
> {code}
> When {{docValues="true"}} *and* {{multiValued="true"}} are used at the same
> time, StatsComponent throws :
> {noformat}
> ERROR org.apache.solr.core.SolrCore – org.apache.solr.common.SolrException:
> Type mismatch: popularity was indexed as SORTED_SET
> at
> org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:193)
> at
> org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:699)
> at
> org.apache.solr.handler.component.SimpleStats.getStatsFields(StatsComponent.java:319)
> at
> org.apache.solr.handler.component.SimpleStats.getStatsCounts(StatsComponent.java:290)
> at
> org.apache.solr.handler.component.StatsComponent.process(StatsComponent.java:78)
> at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:221)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1964)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]