Just realized I forgot to reply-all, response copied verbatim: Jeremy,
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 <jeraym...@gmail.com> 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]: > http://wiki.basho.com/Riak-Search---Indexing-and-Querying-Riak-KV-Data.html#Other-Data-Encodings > > -- > Jeremy > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com