[
https://issues.apache.org/jira/browse/LUCENENET-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vivien closed LUCENENET-449.
----------------------------
Resolution: Not A Problem
I figured out the new way of handling it.
> In Lucene .Net version 2.9.2, method Query.Rewrite() does not work as
> expected.
> -------------------------------------------------------------------------------
>
> Key: LUCENENET-449
> URL: https://issues.apache.org/jira/browse/LUCENENET-449
> Project: Lucene.Net
> Issue Type: Bug
> Components: Lucene.Net Core
> Affects Versions: Lucene.Net 2.9.2
> Environment: Windows 7, Microsoft .Net 3.5.
> Reporter: Vivien
>
> When WildcardQuery.Rewrite method is called, it calls
> ConstantScoreAutoRewrite.Rewrite method.
> In this method, int docCountCutoff seems to be 0 for the cases I tested,
> therefore, docVisitCount is usually greater than
> docCountCutoff, as the result of this, the code block where // Too many terms
> -- make a filter is executed.
> So if we have document (with contents "text cat and cut") indexed, we want to
> search for c*t, if we set the initial query to have the search criteria c*t,
> then call query.rewrite(), I am expecting to have the result query with
> criteria of searching for cat + cut. Version 2.9.2 just returns the original
> wildcard query, which is not a correct behaviour if you look at version 2.4.1.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira