Filters are super fast to apply, especially when cached. I wouldn't worry about the cost of applying a filter.
On Thu, Feb 13, 2014 at 3:33 PM, JoeZ99 <[email protected]> wrote: > I want documents who has certain field/value pairs ("availability: 0"), > not to be "searchable". > > There's one solution provided by Igor, which is to use an alias. We set an > alias with the index name and a filter requiring availibity > 0 , and we > make all our search queries to that alias. But I like to know if there's > anyway to tell "ES to "not even look at" those documents. More or less like > the "index:no" option when defining a field mapping, but on a document > level. > > I've pursuing this because I think there's a performance gain here, maybe > there's not? an alias with a numeric filter is as performant as this "not > searchable document" solution would be??? > > txs > > -- > 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/20714f9a-a79b-4c62-9439-780c33f18e56%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Adrien Grand -- 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/CAL6Z4j5L4Kv1NGH4h_FNyw8-yjiqL4xKfs0347ApCeyMwLFHsQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
