dbmdz/solr-ocrhighlighting

Highlighting weirdness with "pirate vessels"~10 query

Closed this issue · 0 comments

The "pirate vessel"~10 query on the Google 1000 dataset keeps on giving:

bug

    "Volume_0130":{
      "ocr_text":{
        "snippets":[{
            "page":"page_89",
            "text":"THE seas which interlace the various West India islands, and border on the South American coast, generally termed the Caribbean Sea, have long been infested with <em>piratical cruisers, vessels</em> manned with desperadoes of all nations, which are ever on the outlook for prizes, and which all",
            "score":0.69361335,
            "region":{
              "ulx":114,
              "uly":782,
              "lrx":933,
              "lry":952},
            "highlights":[[{
                  "text":"piratical",
                  "ulx":699,
                  "uly":70,
                  "lrx":818,
                  "lry":101},
                {
                  "text":"cruisers,",
                  "ulx":1,
                  "uly":104,
                  "lrx":222,
                  "lry":134}]]},
          {
            "page":"page_95",
            "text":"Sometimes they were found crawling inside of our pan­taloons, but fortunately no injury was received. This afternoon, the <em>pirates hove their vessel</em> out by the Exertion, and cleaned one side, using her paints, oil, &c., for that purpose. To seo my vessel in that situation, and to think",
            "score":0.64519155,
            "region":{
              "ulx":92,
              "uly":195,
              "lrx":920,
              "lry":368},
            "highlights":[[{
                  "text":"pirates",
                  "ulx":203,
                  "uly":71,
                  "lrx":539,
                  "lry":102}]]},
          {
            "page":"page_98",
            "text":"of the worn-out islanders, their deliverer was no other than Nickola, who had all along been the secret friend of Captain Lincoln, and had actually Hed from the <em>pirates with a few companions, and, procuring a vesse<em>l</em>, had now come to rescue the victims of piratical</em> oppression. Nickola,",
            "score":1.1872923,
            "region":{
              "ulx":78,
              "uly":1383,
              "lrx":891,
              "lry":1554},
            "highlights":[[{
                  "text":"vessel,",
                  "ulx":592,
                  "uly":103,
                  "lrx":681,
                  "lry":130}]]},
          {
            "page":"page_99",
            "text":"1829.' Since his death,' says he,' I have been informed that the <em>piratical schooner Mexican was afterwards chased by an English government vessel</em> from Jamaica, which was cruising in search of it. Being hotly pursued, the <em>pirates </em>",
            "score":1.4828699,
            "region":{
              "ulx":106,
              "uly":482,
              "lrx":926,
              "lry":653},
            "highlights":[[{
                  "text":"piratical schooner Mexican was afterwards chased by",
                  "ulx":56,
                  "uly":69,
                  "lrx":820,
                  "lry":101},
                {
                  "text":"an",
                  "ulx":0,
                  "uly":104,
                  "lrx":433,
                  "lry":136}]]}],
        "numTotal":4}}