Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.2 (incubating)
    • Fix Version/s: 0.4.0
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Linux

      Description

      If I explicitly specify excerpt_length:

      my $hl = Lucy::Highlight::Highlighter->new(
      searcher => $searcher,
      query => $query_compiler,
      field => 'site',
      excerpt_length => 60,
      );

      ...and the field content is longer than 60, then

      $page_highlighter->create_excerpt($hit);

      returns '...'.

      Content which is short than 60, returns the highlighted excerpt as expected.

      If I comment out "excerpt_length => 60," above, then it returns the full
      non-truncated excerpt with highlighting as expected.

      Some >60char samples which return …/"...", searching for [iol.co.za] or
      [news24.com] (brackets are mine):

      [www.iol.co.za/tonight/books/what-the-dickens-gets-a-statue-1.1130220]
      http://www.news24.com/News24v2/Travel/Mini_Site/ContentDisplay/n24TravelMiniSiteHome/0,,,00.html
      [www.news24.com/News24v2/Travel/Mini_Site/ContentDisplay/n24TravelMiniSite_TravelClub/0,,,00.html]

      The following return double-ellipses ("......" - ……), searching
      for [adsl mweb.com]:

      http://www.mweb.co.za/helpcentre/ADSL/ADSLGeneralIdisagreewithyourusagereport.aspx
      http://www.mweb.co.za/helpcentre/FrequentlyAskedQuestions/MWEBHelpCentreFAQsHowdoI/FAQHowdoIHowdoImigratemyADSL/tabid/661/Default.aspx

      1. LUCY-199-quickfix.patch
        4 kB
        Nick Wellnhofer
      2. hltest1.tgz
        2 kB
        Henry

        Activity

        Nick Wellnhofer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.4.0 [ 12319858 ]
        Resolution Fixed [ 1 ]
        Nick Wellnhofer made changes -
        Attachment LUCY-199-quickfix.patch [ 12510182 ]
        Henry made changes -
        Field Original Value New Value
        Attachment hltest1.tgz [ 12508988 ]
        Henry created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Henry
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development