Open sorryya opened 6 years ago
Both queries work for me using your mapping can you provide me with sample data from your es cluster?
And these:
System.out.println(g.V().hasLabel("USER").toList()); // ok
System.out.println(g.V().hasLabel("USER").limit(2).toList()); // got nothing
System.out.println(g.V("小明").valueMap().toList()); // got nothing
System.out.println(g.V("Tom").valueMap().toList()); // ok
The special thing of my data is: some user named in chinese.
Maybe it's because the field "USER" has been analyzed into tokens. We found that if a string field is setted with "not_analyzed", the queries are right.
This was probably the issue is it OK to close?
I think this is a bug that needs fixing. It should support the analyzed fields.
fragment of the mapping file:
code:
output:
Problem: Why are these two queries that don't work?