Followup on this thread:
i ended up using WildcardQuery with "*" at the end of last token for
PhraseWildcardQuery class from the sandbox,
i tested this class rigorously and i think it is ready to move it from
sandbox jar to the appropriate release jar.
Is there a plan for that?
PhraseWil
Hi,-
Looks like the only way to use and test the new PhraseWildCardQuery
class in Lucene 8.4.0 sandbox is to switch to Lucene 8.4.0 from Lucene
7.7.2.
I thought i could adapt it to Lucene 7.7.2 but so far i saw i needed to
change heavily 20+ classes and it will be way more than this.
So,
Hi,-
is there a JAR file for the classes in the
https://github.com/apache/lucene-solr/tree/master/lucene/core/src/java/org/apache/lucene/search
and index and analysis directories?
https://github.com/apache/lucene-solr/tree/master/lucene/core/src/java/org/apache/lucene/search
does not have P
Hi,-
Thanks again Michael, David and Bruno and the Forum for letting me know
this repository.
The version of PhraseWildCardQuery on
https://github.com/apache/lucene-solr/blob/master/lucene/sandbox/src/java/org/apache/lucene/search/PhraseWildcardQuery.java
uses some classes not available Luce
Michael and Forum,-
This is amazing, thanks.
i will try both cases.
i can also have "term1 term2Char1term2Char2*"
and so on with term2's next chars.
I hope the latest version on github for this
class works with Lucene Version 7.7.2.
Best regards
> On Feb 18, 2020, at 8:33 PM, Michael Froh wr
In your example, it looks like you wanted the second term to match based on
the first character, or prefix, of the term.
While you could use a WildcardQuery with a term value of "term2FirstChar*",
PrefixQuery seemed like the simpler approach. WildcardQuery can handle more
general cases, like if yo
Michael and Forum,-
Thanks for thegreat explanations.
one question please:
why is PrefixQuery used instead of WildCardQuery in the below snippet?
Best regards
> On Feb 17, 2020, at 3:01 PM, Michael Froh wrote:
>
> Hi Baris,
>
> The idea with PhraseWildcardQuery is that you can mix literal "
Hi Baris,
The idea with PhraseWildcardQuery is that you can mix literal "exact" terms
with "MultiTerms" (i.e. any subclass of MultiTermQuery). Using addTerm is
for exact terms, while addMultiTerm is for things that may match a number
of possible terms in the given position.
If you want to search
Hi,-
i hope everyone is doing great.
if i want to do the following search with PhraseWildCardQuery and
thanks to this forum for letting me know about this class (Especially to
David and Bruno)
term1 term2FirstChar*
i need to do two ways: (i found the source code at
https://fossies.org/lin