GithubHelp home page GithubHelp logo

Comments (7)

asfimport avatar asfimport commented on May 10, 2024

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.

asfimport avatar asfimport commented on May 10, 2024

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.

asfimport avatar asfimport commented on May 10, 2024

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.

asfimport avatar asfimport commented on May 10, 2024

Otis Gospodnetic (migrated from JIRA)

Could you please provide a class that is a simple self-enclosing test case
that demonstrates this?

from lucene.

asfimport avatar asfimport commented on May 10, 2024

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.

asfimport avatar asfimport commented on May 10, 2024

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.

asfimport avatar asfimport commented on May 10, 2024

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)

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.