Comments (7)
Lee Mallabone (migrated from JIRA)
Created an attachment (id=1465)
Fixes the bug by providing a correct, commented replacement for the 'wildcardEquals' method
from lucene.
Otis Gospodnetic (migrated from JIRA)
Hm, I can't duplicate the behaviour you describe.
I have an index with a few travel-related entries.
When I search for travel I get 1 match containing "Land a hot travel deal ...."
When I search for travel* I get 2 matches. The first one is the same as the one
above, and the second one contains "Travelocity.com" in the indexed field.
Doesn't the fact that a search for travel* matches entries that contain only the
term "travel", and no other terms with "travel" as their base, confirm that
wildcards work properly, matching zero or more characers, even when used at the
end of the query string?
from lucene.
Lee Mallabone (migrated from JIRA)
Is that definitely using the WildcardQuery class? I know the query parser
defaults to using PrefixQuery for wildcards at the end of the term. In
PrefixQuery, the bug does not seem to be present. However, I'm able to search
for words in my indexes, get results, then search again using WildcardQuery with
a * character at the end, and get zero results.
from lucene.
Otis Gospodnetic (migrated from JIRA)
Could you please provide a class that is a simple self-enclosing test case
that demonstrates this?
from lucene.
Lee Mallabone (migrated from JIRA)
Created an attachment (id=1488)
Simple piece of code that demonstrates an incorrect search result when doing a wildcard search.
from lucene.
Otis Gospodnetic (migrated from JIRA)
Thank you, I applied the patch (well, pasted it, as I couldn't get patch to apply the
diff).
from lucene.
ASF subversion and git services (migrated from JIRA)
Commit 1521851 from @ovalhub in branch 'pylucene/trunk'
https://svn.apache.org/r1521851
fixed bug PYLUCENE-26 (Martin Anon)
from lucene.
Related Issues (20)
- JVM SIGSEGV crash when compiling computeCommonPrefixLengthAndBuildHistogram Lucene 9.9.0
- Improve BWC tests to reveal #12895 and confirm its fix HOT 8
- Where should we stream FST to disk directly? HOT 4
- TransitionAccessor for NFA: get transitions for a given state via random-access leads to wrong results. HOT 1
- jenkins dump file traversal exceptions ("no matches found within 10000") HOT 23
- Require bundled FSTs to be on the current FST version HOT 32
- Concurrency bug `DocumentsWriterPerThreadPool.getAndLock()` uncovered by OpenJ9 test failures? HOT 24
- [Ideation] Improve readInts24 & readDelta16 performance for DocIdsWriter
- Write a HOWTO migrate Codec format version HOT 1
- Add Facets#getBulkSpecificValues
- Reproducible failure in TestFloatVectorSimilarityQuery.testApproximate HOT 1
- [Minor] Regeneration investigation HOT 6
- Build should statically detect when an invisible unicode character, such as U+200B (zero width space), sneak into our sources HOT 18
- Let's run our Monster tests, at least once? HOT 3
- Should we clean up the few remaining references to `Lucene/Solr`? HOT 1
- Test failure in TestKnnGraph.testMultiThreadedSearch HOT 6
- Find and replace uses of unbounded array growth with `growInRange` HOT 1
- Test failure in TestHnswFloatVectorGraph HOT 5
- Can we ban `Thread.sleep`? HOT 6
- Occasional OOMEs when running the test suite HOT 1
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 lucene.