Comments (11)
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.
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.
Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).
Here it is. Thanks for looking into this.
from whoosh.
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.
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.
Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).
Just tried, but had the same problem.
from whoosh.
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.
Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).
Here's my query.
from whoosh.
Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).
:( Is it possible to send me the index (in confidence)?
from whoosh.
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.
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)
- Concurrency Search HOT 5
- Resolved: help changing operators HOT 7
- LockError on Windows HOT 1
- Please help Matt sync up the repos HOT 6
- Not possible to boost word adjacency in search results
- Current state of this project HOT 10
- Please do a release HOT 1
- Filtering Raising AttributeError only sometimes HOT 1
- can we have proximity within strict phrases?
- is literal HOT 1
- Invalid repo referenced in readme HOT 2
- TimeLimitCollector breaks filter of underlying FilterCollector
- 2.7.4: sphinx errors HOT 3
- 2.7.4: pytest error and warnings HOT 1
- 2.7.4: sphinx warnings `reference target not found`
- NestedParent query missing valid result
- NestedParent query is missing valid results HOT 1
- is there a way to add custom variations?
- <Schema: ['content']> is not a Schema
- Is AsyncWriter reliable to use?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whoosh.