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

Add meta keywords to HTMLParser

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 3.1, 4.0-ALPHA
    • modules/examples
    • None

    Description

      It would be good if the HTMLParser could give us the keywords specified in the meta tags, so that we can index them.

      In HTMLParser.jj:

      void addMetaTag()

      { metaTags.setProperty(currentMetaTag, currentMetaContent); currentMetaTag = null; currentMetaContent = null; return; }

      One way to do it:

      void addMetaTag() throws IOException {
      metaTags.setProperty(currentMetaTag, currentMetaContent);
      if (currentMetaTag.equalsIgnoreCase("keywords"))

      { pipeOut.write(currentMetaContent); }

      currentMetaTag = null;
      currentMetaContent = null;
      return;
      }

      Attachments

        1. LUCENE-591.patch
          4 kB
          Robert Muir

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              curtispd Curtis d'Entremont
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: