Search Extractor Default Field

Ryan Zezeski rzezeski at
Mon Jun 18 10:28:22 EDT 2012

Just realized I forgot to reply-all, response copied verbatim:


An extrator is meant to take some data and extract it's constituent
field-value pairs.  If a field cannot be determined for a given value
then the default field should be used.  For example, when indexing
`text/plain` there is no explicit field, it's just a bunch of text, so
the `default_field` specified in the schema is used.  By default the
`default_field` is `value`.

It's also worth noting that if a field is not specified in a query the
default field is assumed.

Does this answer your question?

On Fri, Jun 15, 2012 at 10:26 AM, Jeremy Raymond <jeraymond at> wrote:
> Hello,
> I'm creating a custom search extractor and am not entirely clear on
> what is the purpose of the default field parameter. The docs[1] are
> out of date and describe an extractor function with arity 2 rather
> than 3. Can someone give me a quick description of the purpose and
> usage for default field in an extractor function?
> [1]:
> --
> Jeremy
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list