From 23e5fb0e472abafe5451ba7763712d93608a10b1 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Tue, 8 May 2007 18:03:32 +0000 Subject: [PATCH] SOLR-217 - no error if fields are unindexed and unstored, instead let them be quietly ignored git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536278 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 8 +++++++- example/solr/conf/schema.xml | 12 ++++++++++++ src/java/org/apache/solr/schema/FieldType.java | 5 +++++ .../org/apache/solr/BasicFunctionalityTest.java | 15 +++++++++++++++ src/test/test-files/solr/conf/schema.xml | 3 ++- 5 files changed, 41 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index d92ad600957..0183f6686f3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -167,7 +167,13 @@ New Features descriptive error message. By default, the uniqueKey field is a required field. This can be disabled by setting required=false in schema.xml. (Greg Ludington via ryan) - + +28. SOLR-217: Fields configured in the schema to be neither indexed or + stored will now be quietly ignored by Solr when Documents are added. + The example schema has a comment explaining how this can be used to + ignore any "unknown" fields. + (Will Johnson via hossman) + Changes in runtime behavior 1. Highlighting using DisMax will only pick up terms from the main user query, not boost or filter queries (klaas). diff --git a/example/solr/conf/schema.xml b/example/solr/conf/schema.xml index 4195bd896c4..c31ccf21455 100755 --- a/example/solr/conf/schema.xml +++ b/example/solr/conf/schema.xml @@ -215,6 +215,11 @@ + + + @@ -289,6 +294,13 @@ + + + + +