[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Høydahl updated SOLR-9526: -- Fix Version/s: 7.1 master (8.0) > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: 7.0, master (8.0), 7.1 > > Attachments: SOLR-9526.patch, SOLR-9526.patch, SOLR-9526.patch, > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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 New patch * Fix test failure {{TestConfigSetsAPI.testUserAndTestDefaultConfigsetsAreSame}} Now both {{ant test}} and {{ant precommit}} succeeds on my Mac! Will commit this later today.. We can followup with doc fixes as we come across them. > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: 7.0 > > Attachments: SOLR-9526.patch, SOLR-9526.patch, SOLR-9526.patch, > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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 Thanks a lot for the thorough work. I'm attaching another iteration * Added CHANGES.txt entries for "Upgrading" and "New features" sections. Please review. * Removed the need for {{strings}} when one of the typeMappings has the new tag {{true}}, also removed this from solrconfigs * Updated Ref-Guide, mainly {{schemaless-mode.adoc}}, to discuss the copyField. There may be other locations, examples etc that also needs update... Precommit passes. Several test failures but that is unrelated as far as I can tell > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: 7.0 > > Attachments: SOLR-9526.patch, SOLR-9526.patch, 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Rowe updated SOLR-9526: - Attachment: SOLR-9526.patch Attaching patch brought up to date with master (in particular, collapsing of {{data_driven_schema_configs}} and {{basic_configs}} into {{_default}}) - note that your original patch only modified {{solrconfig.xml}} on one of these and {{managed_schema}} on the other - I assume you had/have local changes that didn't make it into the patch [~janhoy]? I made a couple of other changes; details below. {quote} See new NOCOMMIT comments. I was using the ManagedIndexSchema method {code} public ManagedIndexSchema addCopyFields(String source, Collection destinations, int maxChars) {code} which does not have a {{persist=true/false}} argument, so calling it leaves the schema not persisted. Then I could not find a way to explicitly persist it since method {{boolean persistManagedSchema(boolean createOnly)}} was not public. In this patch I've made it public and done a hacky instanceof check in AddSchemaFieldsUpdateProcessorFactory {code} if (newSchema instanceof ManagedIndexSchema) { // NOCOMMIT: Hack to avoid persisting schema once after addFields and then once after each copyField ((ManagedIndexSchema)newSchema).persistManagedSchema(false); } {code} Steve Rowe, you wrote the {{addCopyFields()}} method a while ago, is there a cleaner way to make sure schema is persisted after adding a copyField? {quote} The design of {{ManagedIndexSchema}}'s API was in support of the Schema REST API, where each resource was modifiable one at a time; "bulk" modifications weren't possible. In the new bulk schema API, though, the ordinary case involves multiple modifications; in this case, it is counter-productive to persist in the middle of a set of operations. SOLR-6476 (introducing schema "bulk" mode) added the option to *not* persist the schema after an operation; previously every operation was automatically persisted. This was added as an option because at the time, bulk and REST modes co-existed. SOLR-7682 added the ability to specify maxChars for copyField directives, and I intentionally left off the {{persist}} option of the new {{addCopyFields()}} method, because there was (intentionally) no way to invoke this capability via the (now deprecated) schema REST API, and the bulk schema API didn't need the {{persist}} option. Long story short: I think making {{persistManagedSchema()}} public is a natural consequence of the bulk schema API (and in support of bulk operations from other sources, e.g. this issue). It's just that nobody had gotten around to it yet. In the {{AddSchemaFieldsUpdateProcessorFactory.processAdd()}} in my patch I removed the {{instanceof ManagedIndexSchema}} check wrapping the call to {{persistManagedSchama()}}, as well as the {{NOCOMMIT}}'s, since the check {{if ( ! cmd.getReq().getSchema().isMutable())}} at the beginning of the method already insures that we're dealing with a {{ManagedIndexSchema}}. I also removed the following {{typeMapping}} that was added in your patch from URP chains {{add-fields-no-run-processor}} and {{parse-and-add-fields}} in {{solrconfig-add-schema-fields-update-processor-chains.xml}} - I'm assuming this is a vestige from an earlier concept of removing {{}}, since these chains have {{text}}? {{AddSchemaFieldsUpdateProcessorFactoryTest}} passes with my change: {code:xml} java.lang.String text {code} > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: 7.0 > > Attachments: SOLR-9526.patch, 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=true=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} > strings > {code} > ...and the "strings" type uses StrField and is not tokenized. > > Original thread: >
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Høydahl updated SOLR-9526: -- Fix Version/s: master (7.0) > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: master (7.0) > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Høydahl updated SOLR-9526: -- Component/s: UpdateRequestProcessors > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: master (7.0) > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Høydahl updated SOLR-9526: -- Labels: dynamic-schema (was: ) > 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) > Components: UpdateRequestProcessors >Reporter: Hoss Man >Assignee: Jan Høydahl > Labels: dynamic-schema > Fix For: master (7.0) > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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 New patch and updated PR https://github.com/apache/lucene-solr/pull/91 * Fixed bug that did not persist copyFields to schema See new NOCOMMIT comments. I was using the {{ManagedIndexSchema}} method {code} public ManagedIndexSchema addCopyFields(String source, Collection destinations, int maxChars) {code} which does not have a {{persist=true/false}} argument, so calling it leaves the schema not persisted. Then I could not find a way to explicitly persist it since method {code} boolean persistManagedSchema(boolean createOnly) {code} was not public. In this patch I've made it public and done a hacky instanceof check in {{AddSchemaFieldsUpdateProcessorFactory}} {code} if (newSchema instanceof ManagedIndexSchema) { // NOCOMMIT: Hack to avoid persisting schema once after addFields and then once after each copyField ((ManagedIndexSchema)newSchema).persistManagedSchema(false); } {code} [~steve_rowe], you wrote the {{addCopyFields()}} method a while ago, is there a cleaner way to make sure schema is persisted after adding a copyField? > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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 > 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 > > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ 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 Ok, I tested the add-copy-field approach and it works so far. Added a test case that validates that both fields get created with correct type. Attached is a preliminary patch with lots of TODO. So far it lacks support for maxChars cutoff. > 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 > > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-9526) data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples
[ https://issues.apache.org/jira/browse/SOLR-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-9526: --- Description: 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=true=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} strings {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 was: 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=true=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} strings {code} ...and the "strings" type uses StrField and is not tokenized. > 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 > > 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=true=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} > strings > {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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org