[ 
https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Høydahl updated SOLR-9526:
------------------------------
    Attachment: SOLR-9526.patch

Updated patch:

* {{maxChars}} settings now work
* Supports multiple {{copyField}} per typeMapping
* Possible to let one of the defined typeMappings be "default" instead of 
falling back to {{defaultFieldType}}. This allows a new field with unknown / 
mixed-type value-type to use the type and copyField of a mapping
* Changed tests to validate that the schema is modified correclty
* Added an actual indexing/query test validating that the cutoff works
* The data-driven-config now defaults to {{text_general}} instead of string, 
and for java.lang.String types it adds a {{*_str}} copyField with maxChars=256
* Removed {{useDocValuesAsStored="false"}} from the dynamicField {{*_str}} 
definition, meaning the *_str copy will be visible in search results (from 
docValues). Think this is more intuitive for beginners and easier to explain in 
tutorials
* Removed {{indexed="true"}} to save space and simplify things, filtering will 
still work, if not as efficient?

> 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
>         Attachments: 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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to