src/main/java/io/chatpal/solr/ext/handler/QueryHelper.java
/**
     * Builds a query that requires one of the parsed terms by using a normal solr
     * OR query.
     * @param field the field-name of the or query
     * @param values the values to query for ({@code OR})
     * @return field-query-string, connected with the {@code OR} operator
     */
Builds a query that requires one of the parsed terms by using a normal solr
OR query.
@param field the field-name of the or query
@param values the values to query for ( OR)
@return field-query-string, connected with the  OR operator
Builds a query that requires one of the parsed terms by using a normal solr OR query . @param field the field - name of the or query @param values the values to query for ( OR ) @return field - query - string connected with the OR operator
public static String buildOrFilter(String field, String[] values) {
        if (values == null || values.length < 1) {
            if (StringUtils.isBlank(field)) {
                return "-[* TO *]";
            } else {
                return "-" + field + ":*";
            }
        }
        return "{!q.op=OR}" +
                (StringUtils.isBlank(field) ? "" : (field + ":")) +
                Arrays.stream(values)
                        .filter(StringUtils::isNotBlank)
                        .map(ClientUtils::escapeQueryChars)
                        .collect(Collectors.joining(" ", "(", ")"));
    }
public static String buildOrFilter ( String field , String [ ] values ) { if ( values == null || values . length < 1 ) { if ( StringUtils . isBlank ( field ) ) { return "-[* TO *]" ; } else { return "-" + field + ":*" ; } } return "{!q.op=OR}" + ( StringUtils . isBlank ( field ) ? "" : ( field + ":" ) ) + Arrays . stream ( values ) . filter ( StringUtils :: isNotBlank ) . map ( ClientUtils :: escapeQueryChars ) . collect ( Collectors . joining ( " " , "(" , ")" ) ) ; }
Builds a query that requires one of the parsed terms by using a normal solr
 OR query.
Builds a query that requires one of the parsed terms by using a normal solr OR query .
//NOTE: a NULL or blank field denotes to the configured 'df'