Skip to content
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

Closed

Commits on Jul 24, 2014

  1. Copy the full SHA
    eddb909 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    59e7ad3 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    18e62a8 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    4f631f7 View commit details
    Browse the repository at this point in the history
  5. use an assert instead of exception if a write request within a bulk r…

    …elates to more than one index
    javanna committed Jul 24, 2014
    Copy the full SHA
    85b8ec1 View commit details
    Browse the repository at this point in the history
  6. added asserts to state that the single index should never be null for…

    … some internal requests
    javanna committed Jul 24, 2014
    Copy the full SHA
    fcee5fe View commit details
    Browse the repository at this point in the history
  7. 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.
    javanna committed Jul 24, 2014
    Copy the full SHA
    f11567b View commit details
    Browse the repository at this point in the history
  8. make sure null index is not accepted by MoreLikeThisRequest#requested…

    …Indices, illegal state is thrown
    javanna committed Jul 24, 2014
    Copy the full SHA
    d644e02 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    51641be View commit details
    Browse the repository at this point in the history
  10. switched requestedIndices return type from String[] to Set<String>, i…

    …mproved the api to make sure and document that duplicates are not returned
    javanna committed Jul 24, 2014
    Copy the full SHA
    870b8ea View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    e81cbdd View commit details
    Browse the repository at this point in the history
  12. aligned requestedIndices to validate for open/close index, delete ind…

    …ex and delete mapping
    javanna committed Jul 24, 2014
    Copy the full SHA
    fbe463d View commit details
    Browse the repository at this point in the history
  13. 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.
    javanna committed Jul 24, 2014
    Copy the full SHA
    ec73bba View commit details
    Browse the repository at this point in the history
  14. Addressed composite action by adding CompositeIndicesRequest interface

    The requests that implement it are: MultiSearchRequest, MultiGetRequest, MultiTermVectorsRequest, BulkRequest, BenchmarkRequest, PercolateRequest, MultiPercolateRequest and MoreLikeThisRequest.
    javanna committed Jul 24, 2014
    Copy the full SHA
    4298a8d View commit details
    Browse the repository at this point in the history
  15. 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.
    javanna committed Jul 24, 2014
    Copy the full SHA
    dbe435b View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    912dac3 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    efa44aa View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    56d6fef View commit details
    Browse the repository at this point in the history