You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:52:40 UTC
[jira] [Updated] (SOLR-5375) Param "literalsOverride" for
ExtractingRequestHandler / SolrCell does not consider "lowernames"
[ https://issues.apache.org/jira/browse/SOLR-5375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated SOLR-5375:
-------------------------------
Fix Version/s: (was: 4.7)
4.8
> Param "literalsOverride" for ExtractingRequestHandler / SolrCell does not consider "lowernames"
> -----------------------------------------------------------------------------------------------
>
> Key: SOLR-5375
> URL: https://issues.apache.org/jira/browse/SOLR-5375
> Project: Solr
> Issue Type: Bug
> Components: contrib - Solr Cell (Tika extraction)
> Reporter: Simon Endele
> Priority: Minor
> Fix For: 4.8
>
> Attachments: SolrContentHandler.java.patch
>
>
> Can be reproduced with the following command and the example configuration shipped with Solr:
> cd exampledocs
> curl -F "file=@hd.xml" "http://localhost:8983/solr/update/extract?commit=true&literal.id=myid&literalsOverride=true&lowernames=true&literal.content_type=mytype"
> The added doc contains both values:
> http://localhost:8983/solr/collection1/select?q=id%3Amyid&wt=xml&indent=true
> {code:xml}<arr name="content_type">
> <str>mytype</str>
> <str>application/xml</str>
> </arr>{code}
> If the corresponding field is not multi-valued, the request raises an org.apache.solr.common.SolrException: "ERROR: multiple values encountered for non multiValued field content_type: ...".
> Debugging the code (Solr 4.4.0) I found out that the parameter "lowernames" is not considered at several places in org.apache.solr.handler.extraction.SolrContentHandler looking like:
> {code}if (literalsOverride && literalFieldNames.contains(name))
> continue;
> {code}
> The same problem occurs for the following command (though its correctness could be discussed):
> curl -F "file=@hd.xml" "http://localhost:8983/solr/update/extract?commit=true&literal.id=myid&literalsOverride=true&lowernames=false&fmap.Content-Type=content_type&literal.content_type=mytype"
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org