Hi,
I use Solr 4.9 and imported about 20K documents from CSV data.
In schema there is following definition for text_general field which I want
to process by tokenization, stop word removal, stemming.
fieldType name=text_general class=solr.TextField
positionIncrementGap=100
analyzer type=index
tokenizer class=solr.StandardTokenizerFactory/
filter class=solr.WordDelimiterFilterFactory
generateWordParts=1 generateNumberParts=1 catenateWords=1
catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
filter class=solr.StopFilterFactory ignoreCase=true
enablePositionIncrements=true /
filter class=solr.ASCIIFoldingFilterFactory /
filter class=solr.SnowballPorterFilterFactory
language=English/
filter class=solr.LowerCaseFilterFactory/
/analyzer
analyzer type=query
tokenizer class=solr.StandardTokenizerFactory/
filter class=solr.StopFilterFactory ignoreCase=true
enablePositionIncrements=true /
filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
ignoreCase=true expand=true/
filter class=solr.ASCIIFoldingFilterFactory /
filter class=solr.SnowballPorterFilterFactory
language=English/
filter class=solr.LowerCaseFilterFactory/
/analyzer
/fieldType
Using Solr Admin Analysis for that field type I see that both index and
query value proceed as expected: Hershey's - *hershey*, The Hershey's
Company - the *hershey* compani
I was expected the same processing for select query, but it seems doesn't
happen and no result found in below example:
q: manufacture_t:The Hershey Company^100 OR title_t:The Hershey
Company^1000
parsedquery_toString: manufacture_t:the text:Hershey text:Company^100.0
title_t:the text:Hershey text:Company^1000.0,
indexed document:
docs: [
{
id: 00010700501806,
description_t: [
Hershey's Whoppers Carton - 12 Pack
],
title_t: [
Whoppers Carton - 12 Pack
],
manufacture_t: [
Hershey's
],
What do I miss?
Thanks in advance,
Tanya
--
View this message in context:
http://lucene.472066.n3.nabble.com/Query-parsing-difference-between-Analysis-and-parsedquery-toString-output-tp4164851.html
Sent from the Solr - User mailing list archive at Nabble.com.