lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3273) Convert Lucene Core tests over to a simple MockQueryParser
Date Tue, 05 Jul 2011 02:31:22 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Male updated LUCENE-3273:
-------------------------------

    Attachment: LUCENE-3273.patch

New patch, new ideas.

I've moved away from introducing anything new and have converted all the core tests over to
instantiating Queries programmatically.  No builders / helpers are used.

Everything compiles and passes again.

> Convert Lucene Core tests over to a simple MockQueryParser
> ----------------------------------------------------------
>
>                 Key: LUCENE-3273
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3273
>             Project: Lucene - Java
>          Issue Type: Sub-task
>          Components: core/other
>            Reporter: Chris Male
>         Attachments: LUCENE-3273.patch, LUCENE-3273.patch, LUCENE-3273_testboolean2.patch
>
>
> Most tests use Lucene Core's QueryParser for convenience.  We want to consolidate it
into a QP module which we can't have as a dependency.  We should add a simple MockQueryParser
which does String.split() on the query string, analyzers the terms and builds a BooleanQuery
if necessary.  Any more complex Queries (such as phrases) should be done programmatically.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message