diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index d800f40eabd..605b4709660 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -203,6 +203,15 @@ New Features http://wiki.apache.org/solr/SpatialSearch and the example. Refactored some items in Lucene spatial. Removed SpatialTileField as the underlying CartesianTier is broken beyond repair and is going to be moved. (gsingers) +* SOLR-2015: Add a boolean attribute autoGeneratePhraseQueries to TextField. + autoGeneratePhraseQueries="true" (the default) causes the query parser to + generate phrase queries if multiple tokens are generated from a single + non-quoted analysis string. For example WordDelimiterFilter splitting text:pdp-11 + will cause the parser to generate text:"pdp 11" rather than (text:PDP OR text:11). + Note that autoGeneratePhraseQueries="true" tends to not work well for non whitespace + delimited languages. (yonik) + + Optimizations ---------------------- diff --git a/solr/example/solr/conf/schema.xml b/solr/example/solr/conf/schema.xml index ec32f82ef8a..8fd659e5b97 100755 --- a/solr/example/solr/conf/schema.xml +++ b/solr/example/solr/conf/schema.xml @@ -213,8 +213,12 @@ words on case-change, alpha numeric boundaries, and non-alphanumeric chars, so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi". Synonyms and stopwords are customized by external files, and stemming is enabled. + The attribute autoGeneratePhraseQueries="true" (the default) causes words that get split to + form phrase queries. For example, WordDelimiterFilter splitting text:pdp-11 will cause the parser + to generate text:"pdp 11" rather than (text:PDP OR text:11). + NOTE: autoGeneratePhraseQueries="true" tends to not work well for non whitespace delimited languages. --> - + + + + + + + + + + + + + + + + + + + + + @@ -403,6 +432,8 @@ + +