You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bernd Fehling <be...@uni-bielefeld.de> on 2012/04/16 10:07:52 UTC

HowTo getDefaultOperator with solr3.6?

I'm trying to get the default operator of a schema in solr 3.6 but unfortunately
everything is deprecated.

The API solr 3.6 says:

getQueryParserDefaultOperator() - Method in class org.apache.solr.schema.IndexSchema
    Deprecated.
    use getSolrQueryParser().getDefaultOperator()

getSolrQueryParser(String) - Method in class org.apache.solr.schema.IndexSchema
    Deprecated.


Now what?

How can I continue if I start with:
QueryParser.Operator operator = getReq().getSchema().

Regards
Bernd