This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Solr search component for language detection. It has the following configuration parameters (are configured in solrconfig.xml): | |
* <ul> | |
* <li>list of parameters language: supported languages</li> | |
* <li>languageDetectionProbabilityThreshold: the minimum detection probability for which the language detection is considered reliable (default is 0.09)</li> | |
* </ul> | |
*/ | |
public class LanguageDetectionComponent extends SearchComponent { | |
public static final String LANGUAGE_REQUEST_PARAM_NAME = "language"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Solr query parser login for the lucene common terms query. Must be used like q={!commonTermsQueryParser}WeightThe weight... | |
* where commonTermsQueryParser is configured in solrconfig.xml. | |
* | |
* The query field must be given as query parameter "qf". The maxTermFrequency can be configured in solrconfig.xml | |
* (default is 0.01). The query is executed against the field given in the request parameter qf while | |
* using the query analyzers of this field. | |
* | |
* see http://java.dzone.com/articles/create-custom-solr-queryparser | |
*/ |