Hello,
I have a text and text_ja fields where text is english and text_ja is
japanese analyzers, i index both with copyfield from other fields.
I'm trying to search both fields using edismax and qf parameter, but I
see strange behaviour of edismax , I wonder if someone can give me a
hist to what's going on and what am I doing wrong?

when I run this query i can see that solr is searching both fields but
the text_ja: query is only a partial text and text: is the complete text.
http://localhost/solr/core0/select/?indent=on&rows=100&; debug=query&
defType=edismax&qf=text+text_ja&q=このたびは
<lst name="debug">
<str name="rawquerystring">このたびは</str>
<str name="querystring">このたびは</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text_ja:たび | text:この
たびは)))/no_coord</str>
<str name="parsedquery_toString">+(text_ja:たび | text:このたびは)</str>
<str name="QParser">ExtendedDismaxQParser</str>
</lst>


now, if I remove the last two characters from the query string solr will
not search the text_ja, at list that's what I understand from the debug
output:
http://localhost/solr/core0/select/?indent=on&rows=100&; debug=query&
defType=edismax&qf=text+text_ja&q=このた
<lst name="debug">
<str name="rawquerystring">このた</str>
<str name="querystring">このた</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:このた)))/no_coord<
/str>
<str name="parsedquery_toString">+(text:このた)</str>
<str name="QParser">ExtendedDismaxQParser</str>
</lst>

with another string of japanese text solr now cuts the query to multiple
text_ja queries:
http://localhost/solr/core0/select/?indent=on&rows=100&; debug=query&
defType=edismax&qf=text+text_ja&q=システムをお買い求め いただき
<lst name="debug">
<str name="rawquerystring">システムをお買い求めいただき</str>
<str name="querystring">システムをお買い求めいただき</str>
<str name="parsedquery">(+DisjunctionMaxQuery((((text_ja:システム
text_ja:買い求める text_ja:いただく)~3) | text:システムをお買い求めいた
だき)))/no_coord</str>
<str name="parsedquery_toString">+(((text_ja:システム text_ja:買い求める
text_ja:いただく)~3) | text:システムをお買い求めいただき)</str>
<str name="QParser">ExtendedDismaxQParser</str>
</lst>



Thank you.

Reply via email to