Removing data fields before indexing with the couchdb river

I'm storing user data in an application I'm writing in couchdb. I'd like to
make the user data searchable using ES, but I don't want to include certain
fields in the data that gets indexed in ES (password, reset password token,
etc). I'm contemplating using the river plugin, but not sure if it's
possible to exclude fields from documents before they are indexed? The
filter section seems to just filter whole documents from being indexed if I
understand it correctly.

Thanks,

Troy Martin

--
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.

troy@scriptedmotion.com wrote:

I'm storing user data in an application I'm writing in couchdb. I'd
like to make the user data searchable using ES, but I don't want to
include certain fields in the data that gets indexed in ES
(password, reset password token, etc). I'm contemplating using the
river plugin, but not sure if it's possible to exclude fields from
documents before they are indexed? The filter section seems to just
filter whole documents from being indexed if I understand it
correctly.

Have a look at the script filter option in the docs. You can fix up
the doc however you want before it's passed on.

https://github.com/elasticsearch/elasticsearch-river-couchdb/blob/master/README.md

-Drew

--
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.

Thank you Drew. That looks like exactly what I need...:sunglasses:

On Monday, February 25, 2013 3:13:59 PM UTC-8, Drew Raines wrote:

tr...@scriptedmotion.com <javascript:> wrote:

I'm storing user data in an application I'm writing in couchdb. I'd
like to make the user data searchable using ES, but I don't want to
include certain fields in the data that gets indexed in ES
(password, reset password token, etc). I'm contemplating using the
river plugin, but not sure if it's possible to exclude fields from
documents before they are indexed? The filter section seems to just
filter whole documents from being indexed if I understand it
correctly.

Have a look at the script filter option in the docs. You can fix up
the doc however you want before it's passed on.

https://github.com/elasticsearch/elasticsearch-river-couchdb/blob/master/README.md

-Drew

--
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.