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

Robert Muir updated LUCENE-5261:
--------------------------------

    Attachment: LUCENE-5261.patch

Simple patch (most of it is removing duplicate crap).

Example usage:
{code}
QueryBuilder builder = new QueryBuilder(analyzer);
Query a = builder.createBooleanQuery("body", "just a test");
Query b = builder.createPhraseQuery("body", "another test");
{code}


> add simple API to build queries from analysis chain
> ---------------------------------------------------
>
>                 Key: LUCENE-5261
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5261
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Robert Muir
>         Attachments: LUCENE-5261.patch
>
>
> Currently this is pretty crazy stuff.
> Additionally its duplicated in like 3 or 4 places in our codebase (i noticed 
> it doing LUCENE-5259)
> We can solve that duplication, and make it easy to simply create queries from 
> an analyzer (its been asked on the user list), as well as make it easier to 
> build new queryparsers.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to