question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allowing wildcard lucene queries with leading *

See original GitHub issue

Hi,

Is there any setting to allow lucene queries start from a *? Example:

SELECT FROM City WHERE name LUCENE "*york*"

Apparently this is the default Lucene behavior to keep its performance and a higher level. However, sometimes this comes in useful.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
robfrankcommented, May 19, 2016

Enabling this will slow down the search. That’s all. Use only if you know what you are doing.

0reactions
andreyvkcommented, May 20, 2016

@robfrank thanks! This is great news.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Lucene leading wildcard performance
Lucene does not by default allow leading wildcards in search terms, but this can be enabled with: QueryParser#setAllowLeadingWildcard(true).
Read more >
StandardQueryParser (Lucene 3.0.3 API)
Set to true to allow leading wildcard characters. When set, * or ? are allowed as the first character of a PrefixQuery and...
Read more >
Customizing Solr to handle Leading Wildcard queries
I want to enable leading wildcard query searches in general. The case mentioned in the earlier mail is just one of the many...
Read more >
Apache Solr - Leading Wildcard Queries and ...
A leading wildcard query must iterate through all of the terms in the index to see if they match the query. For even...
Read more >
Lucene query syntax - Azure Cognitive Search | Microsoft Learn
To use full Lucene syntax, you'll set the queryType to "full" and pass in a query expression patterned for wildcard, fuzzy search, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found