Help, make a selection by the field of the object

you need to make a selection only by file type, the object was saved simply as Object.class
try to choose by,

searchResponse = osClient.search(new SearchRequest(eventIndex)
                             .scroll(scroll)
                     .source(
                     newSearchSourceBuilder().query(
                             QueryBuilders.matchPhraseQuery("metaInfo.object.type",searchQuery.getObject())
                     )
             ), RequestOptions.DEFAULT);

we output is always 0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.