Hi,

  I have incoming field stored both as Text and String field in solr indexed
data. When I search the following cases, string field returns documents(from
Solr client) and not text fields.

NAME:T - no results
Name_Str:T - returns documents

Similarly for the following cases - CPN*, DPS*, S, IF,AND, ARE, etc.

AAA,AN,AND,ARE,BE,BUT,CCC,CPN*,DPS*,FOR,HRC*,IF,IN,INTO,IT,NOT,S,SID*,T,THE,THIS,TO

Is anything with keywords for writing queries or stopwords or synonyms.

Below is the definition of my field definition.

- <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
- <analyzer type="index">
  <tokenizer class="solr.WhitespaceTokenizerFactory" /> 
- <!-- 
 in this example, we will only use synonyms at query time
        <filter class="solr.SynonymFilterFactory"
synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
        

  --> 
  <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" /> 
  <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="1" catenateNumbers="1"
catenateAll="0" /> 
  <filter class="solr.LowerCaseFilterFactory" /> 
  <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"
/> 
  <filter class="solr.RemoveDuplicatesTokenFilterFactory" /> 
  </analyzer>
- <analyzer type="query">
  <tokenizer class="solr.WhitespaceTokenizerFactory" /> 
  <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true" /> 
  <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" /> 
  <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="0" catenateNumbers="0"
catenateAll="0" /> 
  <filter class="solr.LowerCaseFilterFactory" /> 
  <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"
/> 
  <filter class="solr.RemoveDuplicatesTokenFilterFactory" /> 
  </analyzer>
  </fieldType>

<fieldType name="string" class="solr.StrField" sortMissingLast="true"
omitNorms="true" /> 
-- 
View this message in context: 
http://www.nabble.com/Solr-Text-Vs-String-tp17364259p17364259.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to