I have created index with multiple fields in below way,
Class node {
@Indexed(indexName="index")
String name;
@Indexed(indexName="index")
String location;
}
I have a requirement where user can search based on name or location or both of them. What would be the performance issues in this case if i use only name or location in cypher query? As i might use only name or location while searching or both of them in cypher query.
Or Shall i create different indexes on these fields and use WHERE clause? Kindly let me know your opinion on this.