Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-486

Wildcard queries are not analyzed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • Lucene.Net 2.9.2, Lucene.Net 2.9.4
    • None
    • None
    • Windows 7, Visual Studio 2010, .net 4.0

    Description

      The lucene 'QueryParser' doesn't analyze wildcard querys. The function 'GetPrefixQuery'(QueryParser.cs) returns the string without any analyzation.

      I have performed some queries to show the problem. The analyzer is the 'Contrib.Analyzers.DE.GermanAnalyzer'

      ---------- indexed word: 'Häuser'; in the index stemmed as: 'hau' ----------

      query: Hau*; hit: yes
      query: Hause*; hit: no; This should be a hit.....

      ---------- indexed word: 'Angebote'; in the index stemmed as: 'angebo' ----------

      query: Angebo*; hit: yes
      query: Angebot*; hit: no; This should be a hit.....
      query: Angebote*; hit: no; This should be a hit.....

      ---------- indexed word: 'Björn'; in the index stemmed as: 'bjor' ----------

      query: Bjor*; hit: yes
      query: Björ*; hit: no; This should be a hit.....

      Attachments

        1. LuceneTest.zip
          861 kB
          Björn

        Activity

          People

            Unassigned Unassigned
            mimefilt Björn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: