Right, and going the other way (storing and highlighting on the non-stemmed
field) would be unsatisfactory due because you'd get a hit on "hospital" in the
stemmed field, but wouldn't highlight it if you searched on "hospitality".

I really don't see a good solution here. Highlighting seems to be one of those
things that's easy in concept but has a zillion ways to go wrong.

I guess I'd really just go with the copyField approach unless you can prove that
it's really a problem. Perhaps lost in my first e-mail is that storing
the field twice
doesn't really affect search speed or _search_ requirements at all. Take a
look here:
http://lucene.apache.org/core/old_versioned_docs/versions/3_0_0/fileformats.html#file-names

note that the *.fdt and *.fdx files are where the original raw copy goes
(i.e. where data gets written when you specify stored="true")
and they are completely independent of the files that contain the searchable
data. So unless you're disk-space constrained, the additional storage really
doesn't cost you much.

Best
Erick

On Thu, Oct 11, 2012 at 2:31 AM, meghana <meghana.rav...@amultek.com> wrote:
> Hi Erickson,
>
> Thanks for your valuable reply.
>
> Actually we had tried with just storing one field and highlighting on that
> field all the time , whether we search on it or not.
>
> It sometimes occurs issue , like if i search with the term : 'hospitality' .
> and I use field for highlighting , which having stemming applied. it returns
> me highlights with 'hospital' , 'hospitality'. whether it should return
> highlighting only on 'hospitality' as I am doing exact term search, can you
> suggest anything on this?? If we can eliminate this issue while highlighting
> on original field (having applied stemming on it).
>
> The other solutions are sounds really good, but as you said they are hard to
> implement and we at this point , wanted to implement inbuilt solutions if
> possible.
>
> Please suggest if we can eliminate above explained issue on highlighting.
>
> Thanks.
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Make-Exact-Search-on-Field-with-Fuzzy-Query-tp4012888p4013067.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to