tokenize - Using multiple tokenizers in Solr -


What I want to be able to execute a query and gets results that are not sensitive and partial words Matches the index

I have recently installed a solar schema which has been modified so that I can return queries and results, whatever the case may be, what they can do. Therefore, if I search for iPOd, see Ivill that the iPod will return to the code to do this:

   & Lt; Ignore filter class = "solr.StopFilterFactory" = "true" word = "stopwords.txt" enabledPosignIncreates = "true" /> & Lt; Filter class = "solr.WordDelimiterFilterFactory" generWordParts = "1" generatedNumberparks = "1" catenateWords = "1" catenateNumbers = "1" catenateAll = "0" partition onces change = "1" /> & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; Filter class = "solr.SnowballPorterFilterFactory" language = "English" protected = "protwords.txt" /> & Lt; / Analyzer & gt; ... & lt; / Field type & gt;  

I have received this code which will allow us to query partial word matches, but I do not think I can have two tokensisers on one field.

  & lt; FieldType name = "text" class = "solr.TextField" & gt; & Lt; Analyzer Type = "Index" & gt; & Lt; Tokenizer class = "solr.NGramTokenizerFactory" minGramSize = "3" maxGramSize = "15" /> & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; / Analyzer & gt; ... & lt; / Field type & gt;  

So what can I do to show this tokenizer also on the field?
or what is the way to merge them?
Or I can complete this, type another field (i.e. a different name) whose NGRM is tokenizer, then declare a field. Which uses the field type field with NGram and other fields with the standard "text" field type, see Use copyfield to copy each other.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -