Clarify what the queryLanguage argument of Query.parse(...) means
-----------------------------------------------------------------
Key: NUTCH-317
URL: http://issues.apache.org/jira/browse/NUTCH-317
Project: Nutch
Type: Bug
Components: searcher
Versions: 0.8-dev
Reporter: KuroSaka TeruHiko
API document on
Query.parse(String queryString,
String queryLang,
Configuration conf)
does not explain what queryLang is, and should be explained.
There can be at least two interpretations:
(1) Create a Query that restricts the search to include only the documents
written in the specified language. So this would
be equivalent of specifying "lang:xx" where xx is a two-letter language code.
(2) Create a Query interpreting the queryString according to the rules of the
specified languages. In reality, this is used to
select the proper language Analyzer to parse the query string.
I am guessing that (2) is intended.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira