lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-839) WildcardQuery do not find documents if leading and trailing * is used
Date Wed, 21 Mar 2007 16:47:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482829
] 

Doron Cohen commented on LUCENE-839:
------------------------------------

Michael, 

This problem was already fixed since 2.1.0.

* * * 

In general, when you see such a problem, or any problem, the best way is to first search the
mailing lists, user list first, and then dev list. 
For this specific problem, you could search for something like:
   wildcard leading trailing
In the user list you would have immediately found the discussion thread that reported this
issue: http://www.mail-archive.com/search?l=java-user@lucene.apache.org&q=wildcard+leading+trailing

* * *

.... so, for details on this fix see LUCENE-813 ("leading wildcard's don't work with trailing
wildcard").

To get this fix you have three options:

1. Wait for the next official release, it would include this fix, along with other fixes.

2. Download the source of 2.1.0, download the recent patch from LUCENE-813, apply that patch
to the source, rebuild your local copy of Lucene, that would now be 2.1.0 + this fix. 
Risk with this approach is that you cannot always be sure that a certain one fix will apply
cleanly to a base release without needing to first apply previous fixes.

3. Download and use the most updated nightly built version of Lucene. 
Risk with this approach is that nightly builds are not as stable as official releases and
might contain temporary code, temporary API, bugs (temporary :-)) , etc.

4. Download most recent source and build Lucene on your own. 
Same risk as in (3).

Once you get the fix in one of the above methods you should be able to see that your code
actually is working.

* * * 


> WildcardQuery do not find documents if leading and trailing * is used
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-839
>                 URL: https://issues.apache.org/jira/browse/LUCENE-839
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 1.9, 2.0.0, 2.1
>            Reporter: Michael Schlegel
>         Assigned To: Doron Cohen
>
> I indexed a document which contains the word "business".
> If i use query "business" then document will be found.
> If i use query "busines*" then document will be found.
> If i use query "*usiness" then document will be found.
> If i use query "*usines?" then document will be found.
> If i use query "?usines?" then document will be found.
> But if i use query "*usines*" then document will not be found.
> if i use query "*usi*nes*" then document will be found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message