Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8644

Pass token types to QueryBuilder.newSynonymQuery()

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      SynonymGraphFilter distinguishes between input tokens and tokens that it injects into the token stream by setting the TypeAttribute to SYNONYM.  QueryBuilder currently ignores this information, but it would be useful to pass it through to the newSynonymQuery() method, as this would allow queryparsers to apply differential boosts to synonyms and original terms.

      Attachments

        1. LUCENE-8644.patch
          26 kB
          Alan Woodward
        2. LUCENE-8644.patch
          22 kB
          Alan Woodward

        Activity

          People

            romseygeek Alan Woodward
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: