However, I'm not sure how to do this with the Java client. I tried the
following and got back zero results:
SearchRequest request = new SearchRequest("connectifier")
.types("conn")
.source(new SearchSourceBuilder()
.query(QueryBuilders.textPhraseQuery("phoneNumbers.canonical",
"12533813364")));
Is this not how you represent a nested field from the Java client?
However, I'm not sure how to do this with the Java client. I tried the
following and got back zero results:
SearchRequest request = new SearchRequest("connectifier")
.types("conn")
.source(new SearchSourceBuilder()
.query(QueryBuilders.textPhraseQuery("phoneNumbers.canonical",
"12533813364")));
Is this not how you represent a nested field from the Java client?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.