lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Arslan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1604) Wildcards, ORs etc inside Phrase Queries
Date Tue, 20 Apr 2010 20:08:50 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859048#action_12859048
] 

Ahmet Arslan commented on SOLR-1604:
------------------------------------

To enable ComplexPhraseQueryParser in Solr 1.4.0 - Revisited

Due to the reasons revealed here [1] this plugin should be loaded using the old way [2]

[1] http://search-lucene.com/m/E49gN1naPyh
[2] http://wiki.apache.org/solr/SolrPlugins#The_Old_Way

1-) extract ComplexPhrase.zip and run 'mvn package'
2-) unzip apache-solr-1.4.0.zip and copy ComplexPhrase/target/ComplexPhrase-1.0.jar to apache-solr-1.4.0/lib
directory. 
3-) create a new apache-solr-1.4.0\dist\apache-solr-1.4.1-dev.war (by running 'ant dist')
and use it.

4-) register queryparser to solrhome/conf/solrconfig.xml by adding 
<queryParser name="complexphrase" class="org.apache.solr.search.ComplexPhraseQParserPlugin"
/> 
5-) enable it by appending &defType=complexphrase to search url.
6-) Alternatively you can add {!complexphrase} in front of your query string. e.g. &q={!complexphrase}"s*
b*"
7-) More permanent usage can be configured in solrconfig.xml
<requestHandler name="standard" class="solr.StandardRequestHandler" default="true">
<lst name="defaults">
<str name="defType">complexphrase</str> 
</lst>
</requestHandler>

> Wildcards, ORs etc inside Phrase Queries
> ----------------------------------------
>
>                 Key: SOLR-1604
>                 URL: https://issues.apache.org/jira/browse/SOLR-1604
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Ahmet Arslan
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: ComplexPhrase.zip, ComplexPhrase.zip, ComplexPhraseQueryParser.java,
SOLR-1604.patch
>
>
> Solr Plugin for ComplexPhraseQueryParser (LUCENE-1486) which supports wildcards, ORs,
ranges, fuzzies inside phrase queries.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message