[
https://issues.apache.org/jira/browse/SOLR-8543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132099#comment-18132099
]
Nick Shanin commented on SOLR-8543:
-----------------------------------
>From code reading against apache/main b73f03976fa, the default chain guesses a
>field's type from its value, so a JSON string "50" becomes a long
>(solr-ref-guide/modules/indexing-guide/pages/schemaless-mode.adoc:25). Can
>this close, with a sentence added to say guessing is by value and not JSON
>type?
🤖 AI-generated 🤖
> 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
> Priority: Major
> 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
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]