Git Product home page Git Product logo

Comments (11)

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by tcrombez (Bitbucket: tcrombez, GitHub: tcrombez).


I just tried the approach detailed in post #8, and it works for me too. Thanks a lot!

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Thanks, looks like a pretty straightforward mistake on my part... Your fix in #8 is exactly what I'm going to do.

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


Here it is. Thanks for looking into this.

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Could you change that "return" to raise an exception instead and attach the traceback? Thanks so much for all your help!

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


How about this: It appears that skip_to() also calls _find_next() without checking to see if it is active. Added the same check to skip_to() fixed it. I actually instead just put these two lines at the beginning of _find_next() (line 165) which stopped errors from happening, although I don't know it affects the accuracy of the search.

    def _find_next(self):
        if not self.is_active():
            return
        child = self.child

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


Just tried, but had the same problem.

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Unfortunately I can't open the index because I don't have the custom classes pickled in with the schema. However, if you don't mind editing the Whoosh source code, could you see if this change fixes the problem?

In the file spans.py at line 184 (in SpanWrappingMatcher.next()) change the following:

self.child.next()
self._find_next()

to...

self.child.next()
if self.is_active():
    self._find_next()

Thanks!

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


Here's my query.

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


:( Is it possible to send me the index (in confidence)?

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


I'm actually still experiencing this problem on whoosh 1.1.

Attached is the repr of the MultiMatcher. The MultiMatcher has 5 matchers, but current is 5.

Would it be helpful if I sent you a copy of my index so you can reproduce the problem yourself?

from whoosh.

fortable1999 avatar fortable1999 commented on July 17, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


What version are you using? This sounds like a bug that's been fixed.

from whoosh.

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.