I create query by QueryParser:
QueryParser parser = new QueryParser(Version.LUCENE_30, "Text", new RussianAnalayzer());
parser.setDefaultOperator(QueryParser.Operator.AND);
Query query = parser.parse(searchString);
When I use the phrase where the words have variations, I'm getting the united with "AND", like: "term1 term2" -> "term1 AND "term2_1 AND term2_2"". How can I get query like : "term1 AND "term2_1 OR term2_2"" without splitting string for words?
Great thanks.