New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose the indices names in every action relates to if applicable #6933
Expose the indices names in every action relates to if applicable #6933
Commits on Jul 24, 2014
-
-
switched to IllegalStateException in case a put warmer doesn't contai…
…n a search request
-
use an assert instead of exception if a write request within a bulk r…
…elates to more than one index
-
added asserts to state that the single index should never be null for…
… some internal requests
-
make sure NPE is never thrown when setting indices(null) to IndicesAl…
…iasesRequest, similar to what SearchRequest does Also make sure that requestedIndices doesn't accept empty indices, which are not accepted during validation either.
-
make sure null index is not accepted by MoreLikeThisRequest#requested…
…Indices, illegal state is thrown
-
-
switched requestedIndices return type from String[] to Set<String>, i…
…mproved the api to make sure and document that duplicates are not returned
-
-
aligned requestedIndices to validate for open/close index, delete ind…
…ex and delete mapping
-
Renamed IndicesRelatedRequest to IndicesRequest and reused indices me…
…thod already existing in most of the requests Note that the following composite actions are not marked as IndicesRequest and will be addressed by exposing their subrequests in a generic manner on a separate change.
-
Addressed composite action by adding CompositeIndicesRequest interface
The requests that implement it are: MultiSearchRequest, MultiGetRequest, MultiTermVectorsRequest, BulkRequest, BenchmarkRequest, PercolateRequest, MultiPercolateRequest and MoreLikeThisRequest.
-
Added indices options to IndicesRequest interface, to express the dif…
…ferent behaviour depending on the api For instance get api and index api hold a single index, which can be an alias, but both apis don't expand wilcards and an empty array is not allowed nor it becomes _all, which is what happens with most of the multiple indices apis, like search api. Streamlined indices options to all the request where it makes sense, rather than leaving it implicit in the related TransportAction when indices get expanded (tipycally MetaData#concreteIndices or MetaData#concreteSingleIndex). Added IndicesOptions parameter to MetaData#concreteSingleIndex to make sure it is taken from the request, where the information belongs, instead of hardcoded within MetaData.
-
-