Simple question from a beginner.
I store a document that looks like this:
{"locator":"CO2.CausalAssociation.ClimateChange",
"nameString":"CO2 causes Climate Change",
"instanceOf":"AssociationType",
"sourceTopic":"CO2",
"targetTopic":"ClimateChange"
}
and can prove it is there (that query brought up with a match query.
Using QueryBuilders, I get this query string
{
"wildcard" : {
"locator" : {
"wildcard" : "CO2.CausalAssociation*"
}
}
Earlier, I tried the simplest possible string, as suggested in the ES
documentation:
{"wildcard": {"locator":"CO2.CausalAssociation*"}}
Both query strings fail to match the given document.
In my code, I do not add any mappings to the index as I create. I am
down to wondering why match will work, but wildcard will not.
Thanks in advance for any ideas.
Jack
--
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.
For more options, visit https://groups.google.com/groups/opt_out.