In solr admin interface I have this query
which runs fine
In the java code I have
The above throws:
Is this a bug or how would I build the criteria to match the above query
Code:
text: nose AND (text:heart OR text:core)
In the java code I have
Code:
import static org.springframework.data.solr.core.query.Criteria.*;
...
Criteria cr = new Criteria().and(
where("text").is("nose"),
where("text").is("heart").or("text").is("core")
);
Code:
java.lang.IllegalArgumentException: Cannot add criteria for null field.
at org.springframework.util.Assert.notNull(Assert.java:112)
....