Hi,

I am indexing some large documents in an index. When making full text 
queries, I've generally used {"text": {"_all": "some text search"}} to find 
all possible results. However, the document contains a few "private" fields 
that should be queryable only by a certain user group.

What I was wondering is if there is a possibility to define some kind of 
alias for a set of fields (or even better - all fields except the set of 
fields) in the mapping definition. I could then do a query {"text": 
{"alias_for_public_fields": "some text search"}} while the private fields 
would not be searched for. I do not know if this is possible already now?

I know that it's possible to list all fields in the query and leave out the 
privates, but as there can be hundreds of fields that should be queryable 
but only 2-3 private fields, listing fields explicitly adds significant 
overhead to the queries.

Best regards,
Ville

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8dc6c390-b483-40d0-bc4e-264380743aef%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to