lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject lucene-solr:master: LUCENE-8497: Fix reference to MultiTermAwareComponenent in Solr reference guide
Date Mon, 19 Nov 2018 12:12:50 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 65486442c -> c2bd3aed2


LUCENE-8497: Fix reference to MultiTermAwareComponenent in Solr reference guide


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c2bd3aed
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c2bd3aed
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c2bd3aed

Branch: refs/heads/master
Commit: c2bd3aed22b439168fb2bfadcdcee4fed09e4ff7
Parents: 6548644
Author: Alan Woodward <romseygeek@apache.org>
Authored: Mon Nov 19 12:12:24 2018 +0000
Committer: Alan Woodward <romseygeek@apache.org>
Committed: Mon Nov 19 12:12:24 2018 +0000

----------------------------------------------------------------------
 solr/solr-ref-guide/src/analyzers.adoc | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c2bd3aed/solr/solr-ref-guide/src/analyzers.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/analyzers.adoc b/solr/solr-ref-guide/src/analyzers.adoc
index 6e64165..998f50f 100644
--- a/solr/solr-ref-guide/src/analyzers.adoc
+++ b/solr/solr-ref-guide/src/analyzers.adoc
@@ -87,9 +87,15 @@ At query time, the only normalization that happens is to convert the query
terms
 
 === Analysis for Multi-Term Expansion
 
-In some types of queries (i.e., Prefix, Wildcard, Regex, etc.) the input provided by the
user is not natural language intended for Analysis. Things like Synonyms or Stop word filtering
do not work in a logical way in these types of Queries.
-
-The analysis factories that _can_ work in these types of queries (such as Lowercasing, or
Normalizing Factories) are known as {lucene-javadocs}/analyzers-common/org/apache/lucene/analysis/util/MultiTermAwareComponent.html[`MultiTermAwareComponents`].
When Solr needs to perform analysis for a query that results in Multi-Term expansion, only
the `MultiTermAwareComponents` used in the `query` analyzer are used, Factory that is not
Multi-Term aware will be skipped.
+In some types of queries (i.e., Prefix, Wildcard, Regex, etc.) the input provided
+by the user is not natural language intended for Analysis. Things like Synonyms
+or Stop word filtering do not work in a logical way in these types of Queries.
+
+When Solr needs to perform analysis for a query that results in multi-term
+expansion, then the `normalize` method is called for each factory in the filter
+chain.  Factories that provide filters that do not make sense in this context
+will return their inputs unchanged.  Normalization applies to both CharFilters
+and TokenFilters
 
 For most use cases, this provides the best possible behavior, but if you wish for absolute
control over the analysis performed on these types of queries, you may explicitly define a
`multiterm` analyzer to use, such as in the following example:
 


Mime
View raw message