Stored fields by default

Hi,
is there a possibility to define (for specific type) for all fields
which will be added dynamically to be stored (when field names are not
known in advance)?

Fields need to be stored for selective searching with 'fields' param,
not added to _all field which is stored, because not all users have the
privilege to see _all fields or _source value.

Tomislav

Hi,

No, there isn't an option to do that, and you need to explicitly define
it. You can open a feature request for this, it should be simple. Note
though, that if you load several fields, the search will be slower.

-shay.banon

On Wed, Jul 28, 2010 at 9:42 PM, Tomislav Poljak tpoljak@gmail.com wrote:

Hi,
is there a possibility to define (for specific type) for all fields
which will be added dynamically to be stored (when field names are not
known in advance)?

Fields need to be stored for selective searching with 'fields' param,
not added to _all field which is stored, because not all users have the
privilege to see _all fields or _source value.

Tomislav