lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-8543) Index json documents properly
Date Thu, 03 Mar 2016 02:08:18 GMT

    [ https://issues.apache.org/jira/browse/SOLR-8543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15176981#comment-15176981
] 

Cao Manh Dat commented on SOLR-8543:
------------------------------------

I think it is an important problem! Can anyone look into this issues?

> Index json documents properly
> -----------------------------
>
>                 Key: SOLR-8543
>                 URL: https://issues.apache.org/jira/browse/SOLR-8543
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Cao Manh Dat
>         Attachments: SOLR-8543.patch
>
>
> When schemaless core index a json document. Solr will try to find field type based on
first value. It is quite convenient, but sometime solr's detection is not match with json
specification. For example, given a document
> {code}
> {
>  "name" : "50",
>  "star" : 5
> }
> {code}
> Solr will detect {{name, star}} as {{long}} field. But it quite trivial in json when
a value is number or string. So {{name}} should be {{string}} field and {{star}} should be
{{long}} field.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message