lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: A question about underscore
Date Mon, 06 Apr 2020 15:42:04 GMT
I _strongly_ urge you to become acquainted with the Admin UI, particularly the “analysis”
section. It’ll show you exactly what transformations each step in your analysis chain perform.

Without you providing the fieldType definition, all I can do is guess but my guess is that
you have WordDelimiterFilterFactory in your analysis chain, which splits on underscores. If
you change that definition, you’ll have to re-index from scratch.

Best,
Erick

> On Apr 6, 2020, at 10:13 AM, chalaulait 808 <bond.of.peace30463@gmail.com> wrote:
> 
> I am using Solr4.0.13 to implement the search function of the document
> management system.
> I am currently having issues with search results when the search string
> contains an underscore.
> For example, if I search for the character string "AAA_001", the search
> results will return results like "AAA" OR "001"
> 
> I checked the Solr manual below and found that some characters needed
> escaping, but they didn't include underscores.
> 
> https://archive.apache.org/dist/lucene/solr/ref-guide/apache-solr-ref-guide-4.10.pdf
> 
> Is this event a specification?
> Please let me know if any information is missing.
> Thank you.


Mime
View raw message