Modify a rest request


i want write a rest filter to accomplish the following:

I know that the rest request is a search request and i want to parse the
rest requests content and modify the search query and then execute the
modified request.

I tried a lot of things like

SearchSourceBuilder sb = RestSearchAction.parseSearchSource(request);

sb.postFilter(FilterBuilder postFilter) //-> NPE because sb is null

I also played with ParsedQuery and QueryParser but that seems to not be the
right for this.



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
To view this discussion on the web visit
For more options, visit