On Jul 24, 2009, at 9:59 AM, prerna07 wrote:
I have recreated indexes with phonetic filter factory but i am still
facing
below mentioned issue. Please let me know if i am missing something:
I am searching for product_12345 string, which is present in only one
record.
Issue: Solr return me all indexes which have product_ i.e. it ignore
the
string present after _.
Also debugQuery looks like :
<lst name="debug">
<str name="rawquerystring">product_4844308</str>
<str name="querystring">product_4844308</str>
<str name="parsedquery">PhraseQuery(all:"PRTK ")</str>
<str name="parsedquery_toString">all:"PRTK "</str>
Why is the query showing PRTK ?
Also when i use Dismaxrequest it shows:
<arr name="parsed_boost_queries">
<str>all:ANKL^90.0 all:HNT^123.0 all:KLRS^2000.0 all:HLT^1.0E7
all:M0^100.0 all:KLR^100000.0</str>
</arr>
Why is this showing ANKL, HNT, KLRS..... ?
Why does solr convert search string to ANKL, HNT, KLRS ... strings?
The phonetic filters convert words (not numbers) into a representation
of the "sounds". That is why "product" converted to PRTK above, and
likewise with your dismax query test. This is why both indexing and
querying phonetic filtering is necessary - in order to get matches as
expected.
If you want to search on literally "product_12345" you will want to
adjust your analysis process (and likely have some copyFields to
analyze text different ways). Experiment with the analysis.jsp of
Solr's admin to see how various tweaks to analyzers and field types
change what gets indexed and queried for.
Erik