Shawn, Sorry about my mistake. I have rerun the test with the correct fieldType definition. Still have the same results. See test information below.
<field name="portal_package" type="text_std" indexed="true" stored="true" multiValued="true"/> <fieldType name="text_std" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.LengthFilterFactory" min="1" max="300" /> </analyzer> </fieldType> { "documentKind": "test", "uri": "test300", "id": "test300", "portal_package": "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" } { "responseHeader": { "status": 0, "QTime": 43, "params": { "indent": "true", "q": "portal_package:12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", "_": "1431951254019", "wt": "json" } }, "response": { "numFound": 1, "start": 0, "docs": [ { "documentKind": "test", "uri": "test300", "id": "test300", "portal_package": [ "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" ], "_version_": 1501509688204722200, "timestamp": "2015-05-18T12:13:45.464Z", "language": "en" } ] } } ----- Original Message ----- From: "Shawn Heisey" <apa...@elyograg.org> To: solr-user@lucene.apache.org Sent: Friday, May 15, 2015 4:22:10 PM Subject: Re: Problem with solr.LengthFilterFactory 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