Searching a specific type in a index

(Aaron Gupta) #1


Quick question regarding querying.

If I have a "index1" and within that I have multiple types such as "A', "B" ,"C" , Is there a way to search only a single index using the elasticsearch python api?

I see that in the documentation there is:

is doc_type the same as the type shown in this:

Thanks for any suggestions!

(Jason Wee) #2

what you mean? do you mean search all types within an index or only certain types in an index?

(system) #3