Modify a rest request

Hi,

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.

Thanks

Hendrik

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/219c29cb-0b2e-4df2-828d-d8d818e1a1a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.