(13/03/16 4:08), Van Tassell, Kristian wrote: > Hello everyone, > > If I search for a term “baz” and tell it to highlight it, it highlights just > fine. > > If, however, I search for “foo bar” using the q parameter, which appears in > that same document/same field, and use the hl.q parameter to search and > highlight “baz”, I get no highlighting results for “baz”. > > ?q=パーツにおける機能強化 > &qf=text_ja_JP > &defType=edismax > &hl=true > &hl.simple.pre=<em> > &hl.simple.post=</em> > &hl.fl=text_ja_JP > > The above highlights query term just fine. > > ?q=1234 > &hl.q=パーツにおける機能強化 > &qf=id > &defType=edismax > &hl=true > &hl.simple.pre=<em> > &hl.simple.post=</em> > &hl.fl=text_ja_JP > > This one returns zero highlighting hits.
I'm just guessing, Solr highlighter tries to highlight "パーツにおける機能強化" in your default search field? Can you try hl.q=text_ja_JP:パーツにおける機能強化 . koji -- http://soleami.com/blog/lucene-4-is-super-convenient-for-developing-nlp-tools.html