Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-317

Clarify what the queryLanguage argument of Query.parse(...) means

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.8
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tkurosaka Kuro Kurosaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: