On Mar 23, 2007, at 3:26 PM, Yonik Seeley wrote:
On 3/23/07, Mike Klaas <[EMAIL PROTECTED]> wrote:
On 3/23/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
>
> : But the response isn't highlighted using fuzzy or wildcard
searches...
>
> Hmmm... this seems like a bug in the highlighting, using the
sample schema
> this highlights properly...
>
> http://localhost:8983/solr/select/?q=id%
3AVA902B&version=2.2&start=0&rows=10&indent=on&fl=id&hl=true&hl.fl=id
>
> ...but this does not...
>
> http://localhost:8983/solr/select/?q=id%
3AV*&version=2.2&start=0&rows=10&indent=on&fl=id&hl=true&hl.fl=id
>
> perhaps the Solr highlighting code isn't calling rewrite()
before using
> the Highlighter?
It is, in trunk/:
NamedList sumData = HighlightingUtils.doHighlighting(
results.docList, query.rewrite(req.getSearcher().getReader
()),
req, new String[]{defaultFiel
d});
Definitely a bug somewhere. Does anyone more familiar with lucene
see
why the above wouldn't be sufficient?
Perhaps our use of ConstantScorePrefixQuery by default?
Ah, that would probably explain it! I had stumbled on this before
too and went to fix it and saw the rewrite in there and was
perplexed, but then got distracted by something shiny.
Erik