You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "J.J. Larrea (JIRA)" <ji...@apache.org> on 2007/09/06 08:38:42 UTC

[jira] Commented: (SOLR-195) Wildcard/prefix queries not highlighted

    [ https://issues.apache.org/jira/browse/SOLR-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525304 ] 

J.J. Larrea commented on SOLR-195:
----------------------------------

Until such time as someone implements one of the approaches for extractTerms() in the ConstantScoreXXXQuery classes in Lucene, would a workable workaround (at least for StandardRequestHandler, DisMax might be trickier) be to have the RH parse the query twice, once with the ConstantScore optimizations enabled as usual for generating the hits, and (with a trivial change to SolrQueryParser etc.) once with them disabled for highlighting?  The BooleanQuery clause limit is probably more acceptable for highlighting than for generating hits, the PrefixFilter speed improvements would still be in effect generating the hits, and the query would not need to be externally munged.  Or is that too hacky?

> Wildcard/prefix queries not highlighted
> ---------------------------------------
>
>                 Key: SOLR-195
>                 URL: https://issues.apache.org/jira/browse/SOLR-195
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.1.0, 1.2
>            Reporter: Mike Klaas
>            Priority: Minor
>
> Possible bug in query rewrite()ing:
> http://www.nabble.com/return-matched-terms---fuzzy-or-wildcard-searches-tf3452757.html#a9640214

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.