lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankur Goyal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-1913) QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer Fields
Date Thu, 13 Dec 2012 23:02:14 GMT

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

Ankur Goyal commented on SOLR-1913:
-----------------------------------

Hi,

I tried to use the above jar file into my solr application. When I tried to send a request
to solr using the following parameters:-

q={!bitwiseparse field=fieldname op=AND source=1}*:*

I got the following exception (snippet) :-

SEVERE: null:java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/lucene/queryParser/ParseException
        at org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:469)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:297)

I put the bitwise jar file at the following locations :-
1. apache-solr-4.0.0/dist/solr/WEB-INF/lib
2. apache-solr-4.0.0/example/lib

I also edited the solrconfig.xml.

<queryParser name="bitwise" class="org.apache.solr.bitwise.BitwiseQueryParserPlugin" basedOn="dismax"
/>

However, I am still getting the error. Can you please let me know if I am missing some jar
file or if there is some other configuration change which I need to make?
                
> QParserPlugin plugin for Search Results Filtering Based on Bitwise Operations on Integer
Fields
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1913
>                 URL: https://issues.apache.org/jira/browse/SOLR-1913
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Israel Ekpo
>             Fix For: 4.1
>
>         Attachments: bitwise_filter_plugin.jar, SOLR-1913.bitwise.tar.gz
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> BitwiseQueryParserPlugin is a org.apache.solr.search.QParserPlugin that allows 
> users to filter the documents returned from a query
> by performing bitwise operations between a particular integer field in the index
> and the specified value.
> This Solr plugin is based on the BitwiseFilter in LUCENE-2460
> See https://issues.apache.org/jira/browse/LUCENE-2460 for more details
> This is the syntax for searching in Solr:
> http://localhost:8983/path/to/solr/select/?q={!bitwise field=fieldname op=OPERATION_NAME
source=sourcevalue negate=boolean}remainder of query
> Example :
> http://localhost:8983/solr/bitwise/select/?q={!bitwise field=user_permissions op=AND
source=3 negate=true}state:FL
> The negate parameter is optional
> The field parameter is the name of the integer field
> The op parameter is the name of the operation; one of {AND, OR, XOR}
> The source parameter is the specified integer value
> The negate parameter is a boolean indicating whether or not to negate the results of
the bitwise operation
> To test out this plugin, simply copy the jar file containing the plugin classes into
your $SOLR_HOME/lib directory and then
> add the following to your solrconfig.xml file after the dismax request handler:
> <queryParser name="bitwise" class="org.apache.solr.bitwise.BitwiseQueryParserPlugin"
basedOn="dismax" />
> Restart your servlet container.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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