Hi all,
Been trying to figure this out and seem to be having no luck, so I thought
I'd throw my question up here.
Goal:
- I want to be able to store HTML in a document, but not have it indexed.
For example, I don't want searches for "<span style" to return results,
but I want the raw HTML saved.
The use case is basically: We have a bunch of HTML documents, a user
performs a search, these documents are rendered in some research results in
their native HTML. I'd like to highlight the results but at this point I'd
be content just not screwing up the search results.
Things I've tried:
Field mapping, changing the default analyzer, using html_strip, setting
include_in_all to false, setting index to no and store to yes, etc.
What ends up happening in most cases is ES just ignores what I'm doing
(despite seeing the mapping correctly configured in the index), letting
searches like _all:<span work when that field shouldn't even be indexed nor
included in the _all field. In some cases I'd lose the
default analyzer and gain case sensitivity, so I stopped trying to do
this globally.
This seems like something that should be straight forward but I've wasted a
day on it. Any ideas? I've used the normal documentation, googled various
groups, etc. and just can't seem to get it to work.
Thanks for your time all.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.