This is called 'stemming', and is caused by this: <filter class="solr.SnowballPorterFilterFactory" language="English"/>
It means that all of these terms would match: behave behaving behaved (and possibly more) because they would all stem down to 'behav'. This stemming will happen at index time and at query time, so stemmed terms are stored in your index, and also, as you are seeing, stemming happens on your query terms. You can use the 'analyze' option in the admin interface to see what happens to terms at query/indexing time for your various field definitions. Upayavira On Wed, Apr 3, 2013, at 11:25 AM, vsl wrote: > Hi, > I have strange problem with Solr query. I added to my Solr Index new > document with "behave!" word inside content. While I was trying to search > this document using "behave" search term it was impossible. Only > "behave!" > returns result. Additionaly search debug returns following information: > > debug: { > rawquerystring: "behave", > querystring: "behave", > parsedquery: "allText:behav", > parsedquery_toString: "allText:behav", > > Does anybody know how to deal with such case? Below is my field type > definition. > > > Field definition: > > <fieldType name="text_general" class="solr.TextField" > positionIncrementGap="100"> > <analyzer type="index"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.StopFilterFactory" ignoreCase="true" > words="stopwords.txt" enablePositionIncrements="true" /> > > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.SnowballPorterFilterFactory" > language="English"/> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="1" > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" > preserveOriginal="1" types="characters.txt" /> > </analyzer> > <analyzer type="query"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.StopFilterFactory" ignoreCase="true" > words="stopwords.txt" enablePositionIncrements="true" /> > <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" > ignoreCase="true" expand="true"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.SnowballPorterFilterFactory" > language="English"/> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="1" > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" > preserveOriginal="1" types="characters.txt" /> > </analyzer> > </fieldType> > > where: characters.txt > > ยง => ALPHA > $ => ALPHA > % => ALPHA > & => ALPHA > / => ALPHA > ( => ALPHA > ) => ALPHA > = => ALPHA > ? => ALPHA > + => ALPHA > * => ALPHA > # => ALPHA > ' => ALPHA > - => ALPHA > < => ALPHA > > => ALPHA > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Query-parser-cuts-last-letter-from-search-term-tp4053432.html > Sent from the Solr - User mailing list archive at Nabble.com.