This isn't something I use that approach on.  Let me explain.

I work in a call center, and I'm doing a search for specific key word in
customer notes every night.

For example, we might need a report of which customers called up about
"apple", "banana" or "pear".
I have a script which generates a report for the required key words, and the
report is mailed to
the appropriate staff for review/action.  The highlighting comes in to help
them quickly locate the problem
words.  But not being able to highlight the misspellings ("bannana",
"peaar", etc.) means that they
may overlook the particular entries when reviewing the email.

When you say rewrite the query, what specifically do you mean?  I'm googling
(direct and on the solr site)
for query.rewrite, but nothing is jumping out at me as anything that's
useful/pertinent.  It sounds like
you're telling me to do some manipulation on the query first, but I'm
currently
just passing queries as part of the GET string in an HTTP request (this was
my main
attraction to SOLR in the first place)  Is there a way to trigger the
'rewrite' functionality via
another GET parameter?

Thanks all!

On 2/6/07, karl wettin <[EMAIL PROTECTED]> wrote:


6 feb 2007 kl. 04.19 skrev Michael Kimsal:

> Thanks Erik.  That worked, then threw me for another loop, which I
> sort of
> have fixed I think.
>
> I'm using the highligher functionality, but it doesn't seem to
> highlight the
> 'matched' word if it's a partial match, although it does in fact
> return that
> record.  Am I missing something obvious here, or is highlighting of
> partial
> matches not supported?

You need to rewrite the query. See Query.rewrite.

(I think that's it.)


But,

fuzzy queries are sort of slow, at least compared to many other things.
Depending on your server load and corpus size, perhaps I would
recommend you
using some sort of "did you mean"- functionallity rather than fuzzy
queries.


--
karl




--
Michael Kimsal
http://webdevradio.com

Reply via email to