You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, guys, i wrote a Filter whice extends ActionFilter.Simple , and override the method : apply(String action, ActionResponse response, ActionListener listener). when i invoke method: client.prepareSearch, the apply method was invoked twice whice is not i wanted, once is enough. is there sth i missed ? here is my code :
public static class LoggingFilter extends ActionFilter.Simple {
I think this is the same as #11710. If it happens only with search, it's because TransportSearchAction delegates to a subaction (depending on the search type) which causes the duplication you are seeing.
hi, guys, i wrote a Filter whice extends ActionFilter.Simple , and override the method : apply(String action, ActionResponse response, ActionListener listener). when i invoke method: client.prepareSearch, the apply method was invoked twice whice is not i wanted, once is enough. is there sth i missed ? here is my code :
public static class LoggingFilter extends ActionFilter.Simple {
public class ActionInvokeModule extends AbstractModule implements PreProcessModule {
public class ActionInvokePlugin extends AbstractPlugin {
}
this is my client :
@test
public void testSimpleSearch() {
SearchResponse response = client.prepareSearch("twitter2")
.setTypes("tweet2")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(QueryBuilders.termQuery("user", "wangwu")) // Query
.setFrom(0).setSize(60).setExplain(true)
.execute()
.actionGet();
for (SearchHit hit : response.getHits().getHits()) {
System.out.println("======" + hit.getSource());
}
The text was updated successfully, but these errors were encountered: