Git Product home page Git Product logo

Comments (7)

00-matt avatar 00-matt commented on September 26, 2024 2

I was able to reproduce this with the lyrics from a song (after modifying READ_MAX in server.c so that it'd fit in one command)

INDEX fitter_happier fitter, happier more productive comfortable not drinking too much regular exercise at the gym, three days a week getting on better with your associate employee contemporaries at ease eating well, no more microwave dinners and saturated fats a patient, better driver a safer car, baby smiling in back seat sleeping well, no bad dreams no paranoia careful to all animals, never washing spiders down the plughole keep in contact with old friends, enjoy a drink now and then will frequently check credit at moral bank, hole in wall favours for favours, fond but not in love charity standing orders on sundays, ring-road supermarket no killing moths or putting boiling water on the ants car wash, also on sundays no longer afraid of the dark or midday shadows, nothing so ridiculously teenage and desperate nothing so childish at a better pace, slower and more calculated no chance of escape now self-employed concerned, but powerless an empowered and informed member of societ, pragmatism not idealism will not cry in public less chance of illness tires that grip in the wet, shot of baby strapped in backseat a good memory still cries at a good film still kisses with saliva no longer empty and frantic like a cat tied to a stick that's driven into frozen winter shit, the ability to laugh at weakness calm, fitter, healthier and more productive a pig in a cage on antibiotics
Text has been indexed
SEARCH a pig
["fitter_happier"]
SEARCH a pig in a cage
[]

edit Here's the index produced for the above string: https://termbin.com/oad9

from fist.

StefanSlehta avatar StefanSlehta commented on September 26, 2024

Do you have a link to a text I can replicate the issue with?

from fist.

f-prime avatar f-prime commented on September 26, 2024

This problem has to do with the algorithm used in indexer.c (https://github.com/f-prime/fist/blob/master/fist/indexer.c). I haven't had a chance to look deeply yet, but I think there might be a problem with the look ahead logic.

If you notice, the phrase missing is at the end of the text. This leads me to believe there is something wrong with line 20 (https://github.com/f-prime/fist/blob/master/fist/indexer.c#L20).

If someone is currently investigating the problem that is where I suggest to look.

from fist.

StefanSlehta avatar StefanSlehta commented on September 26, 2024

Also notice that in the example fitter_happier is entered as the doc name, but ["a"] is returned in SEARCH

from fist.

00-matt avatar 00-matt commented on September 26, 2024

@StefanSlehta sorry, that part was just a bad copy and paste.

from fist.

00-matt avatar 00-matt commented on September 26, 2024

Do you think it is worth adding a longer string to the test cases?

from fist.

StefanSlehta avatar StefanSlehta commented on September 26, 2024

Might be worth adding a case that wasn't caught by the original test

from fist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.