[
https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057194#comment-16057194
]
Jan Høydahl commented on SOLR-9526:
-----------------------------------
I have recorded a Terminal session recording to show how this patch works, from
creating a collection, to adding a doc, inspecting schema and verifying that
the string copy is cutoff. Enjoy:
[!https://asciinema.org/a/HY7TDV1owj2Og1qlpfeJondsi.png|width=400!|https://asciinema.org/a/HY7TDV1owj2Og1qlpfeJondsi]
[~arafalov] Don't you agree that this approach is better than having some field
copying being done in URP and some in schema? You can now:
# Create a collection
# Define some fields up-front with schema REST API
# Start indexing documents and let other fields be guessed, searchable and
facetable (_str)
# Inspect the schema created, and if you're happy you can switch to
{{update.autoCreateFields=false}} or even copy the schema to another collection
# If you're not happy with some field guessing, you can modify schema with the
API, changing type, removing/adding {{*_str}} copyField rules etc
# You can even create a {{typeMapping}} in the
{{add-unknown-fields-to-the-schema}} chain that will copy all Integers to a
{{_f}} float version or any other combination if it makes sense for you :)
> data_driven configs defaults to "strings" for unmapped fields, makes most
> fields containing "textual content" unsearchable, breaks tutorial examples
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-9526
> URL: https://issues.apache.org/jira/browse/SOLR-9526
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Hoss Man
> Assignee: Jan Høydahl
> Attachments: SOLR-9526.patch, SOLR-9526.patch, SOLR-9526.patch,
> SOLR-9526.patch
>
>
> James Pritchett pointed out on the solr-user list that this sample query from
> the quick start tutorial matched no docs (even though the tutorial text says
> "The above request returns only one document")...
> http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=name:foundation
> The root problem seems to be that the add-unknown-fields-to-the-schema chain
> in data_driven_schema_configs is configured with...
> {code}
> <str name="defaultFieldType">strings</str>
> {code}
> ...and the "strings" type uses StrField and is not tokenized.
> ----
> Original thread:
> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201609.mbox/%3ccac-n2zrpsspfnk43agecspchc5b-0ff25xlfnzogyuvyg2d...@mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]