How to exclude a field from a search

I'm looking for a way to exclude a field from a search. For example, I
have a user index with fields a, b, and c. I want to search on only
fields a and b in most cases and occasionally search on a, b, and c.
In my case, it would be more convenient to be able to specify the
single field that I want to exclude form the search than to list out
each field individually with the search query. Is there a way to do
this?

Hi,

I do not think that is possible.

--
Regards,
Lukas

On Tuesday, December 13, 2011 at 10:06 PM, danpolites wrote:

I'm looking for a way to exclude a field from a search. For example, I
have a user index with fields a, b, and c. I want to search on only
fields a and b in most cases and occasionally search on a, b, and c.
In my case, it would be more convenient to be able to specify the
single field that I want to exclude form the search than to list out
each field individually with the search query. Is there a way to do
this?

Are you talking about the query_string query, where you can specify a list
of fields? It can potentially be implemented because we know the fields
based on the mappings. The danger there is that people might end up
querying a lot of fields which is expensive.

On Tue, Dec 13, 2011 at 11:06 PM, danpolites dpolites@gmail.com wrote:

I'm looking for a way to exclude a field from a search. For example, I
have a user index with fields a, b, and c. I want to search on only
fields a and b in most cases and occasionally search on a, b, and c.
In my case, it would be more convenient to be able to specify the
single field that I want to exclude form the search than to list out
each field individually with the search query. Is there a way to do
this?

I think so. The use case is that we have a tag field that we want
administrators to be able to search, but we don't want user search
results to search on that field.

On Dec 13, 5:59 pm, Shay Banon kim...@gmail.com wrote:

Are you talking about the query_string query, where you can specify a list
of fields? It can potentially be implemented because we know the fields
based on the mappings. The danger there is that people might end up
querying a lot of fields which is expensive.

On Tue, Dec 13, 2011 at 11:06 PM, danpolites dpoli...@gmail.com wrote:

I'm looking for a way to exclude a field from a search. For example, I
have a user index with fields a, b, and c. I want to search on only
fields a and b in most cases and occasionally search on a, b, and c.
In my case, it would be more convenient to be able to specify the
single field that I want to exclude form the search than to list out
each field individually with the search query. Is there a way to do
this?