On 5/15/2015 2:06 PM, Charles Sanders wrote:
> I have deleted all records from my index. Stopped solr. Made the schema 
> changes as requested. Started solr. Then insert the one test record. Then 
> search. Still see the same results. No portal_package is not the unique key, 
> its uri. Which is a string field. 
>
> <field name="portal_package" type="text_std" indexed="true" stored="true" 
> multiValued="true"/> 
>
> <fieldType name="text_std" class="solr.TextField" positionIncrementGap="100"> 
> <tokenizer class="solr.WhitespaceTokenizerFactory"/> 
> <filter class="solr.LengthFilterFactory" min="1" max="300" /> 
> </fieldType> 

You got rid of <analyzer> and it's closing tag entirely, that's not
going to work.  This is what you need, and you'll need to reindex the
doc again:

<fieldType name="text_std" class="solr.TextField" positionIncrementGap="100">
  <analyzer>
    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
    <filter class="solr.LengthFilterFactory" min="1" max="300"/>
  </analyzer>
</fieldType>

Here's a temporary paste that you can copy/paste:

http://apaste.info/NXn

Thanks,
Shawn

Reply via email to