List of usage examples for org.apache.solr.common.params DisMaxParams MM
String MM
To view the source code for org.apache.solr.common.params DisMaxParams MM.
Click Source Link
From source file:com.github.healthonnet.synonyms.NoBoostSolrParams.java
License:Apache License
@Override public String get(String param) { if (param != null && param.equals(DisMaxParams.MM)) { if (delegateParams.getBool(SynonymExpandingExtendedDismaxQParserPlugin.Params.SYNONYMS_IGNORE_MM, false)) {// w w w . ja v a2 s . c om return null; } } return delegateParams.get(param); }
From source file:org.dice.solrenhancements.morelikethis.DiceMoreLikeThisHandler.java
License:Apache License
private void configureSolrParameters(SolrQueryRequest req, ModifiableSolrParams params, String uniqueKeyField) { // default to the the edismax parser String defType = params.get(QueryParsing.DEFTYPE, EDISMAX); // allow useage of custom edismax implementations, such as our own if (defType.toLowerCase().contains(EDISMAX.toLowerCase())) { params.set(DisMaxParams.MM, 0); // edismax blows up without df field, even if you specify the field to match on in the query params.set(CommonParams.DF, uniqueKeyField); }//w w w .j a v a 2 s . co m params.set(QueryParsing.DEFTYPE, defType); req.setParams(params); }