You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Vineet Mishra <cl...@gmail.com> on 2013/08/09 12:47:22 UTC
Post Call to Solr RequestHandler
Hi
Currently I am working with RequestHandler in Solr, where the user defined
query is processed at the class specified by the requesthandler in
Solrconfig.xml.
But my requirement is that I want to make it a Post call rather than a Get
query call.
Is it possible or are there some way we can accomplish querying Solr
RequestHandler with Post Method.
This is an urgent call. Please revert back soon possible.
Thanks
Vineet
Re: Post Call to Solr RequestHandler
Posted by Shawn Heisey <so...@elyograg.org>.
On 8/9/2013 4:47 AM, Vineet Mishra wrote:
> Currently I am working with RequestHandler in Solr, where the user defined
> query is processed at the class specified by the requesthandler in
> Solrconfig.xml.
>
> But my requirement is that I want to make it a Post call rather than a Get
> query call.
>
> Is it possible or are there some way we can accomplish querying Solr
> RequestHandler with Post Method.
>
> This is an urgent call. Please revert back soon possible.
I can tell you that the built-in query and update handlers that get used
in the Solr example, which you may be using with GET requests, will work
fine with POST.
The request handling is probable generic enough so everything (even
custom handlers) works with POST, but I do not know for sure that this
is the case.
I believe that if you want to send a POST request that you construct
yourself without a Solr API, that it must be formatted in xml or json,
and the Content-Type HTTP header must be correctly set. SolrJ (the Java
client API) is capable of using a more efficient request writer format
that we call javabin.
As of right now SolrJ uses XML by default for the request and asks for
javabin in the response, but there are plans underway to use javabin by
default in both directions. There are some minor technical hurdles to
overcome for this change.
Thanks,
Shawn
Re: Filter search items based on creator permission settings
Posted by Chris Hostetter <ho...@fucit.org>.
: In-Reply-To:
: <CA...@mail.gmail.com>
: References:
: <CA...@mail.gmail.com>
: Subject: Filter search items based on creator permission settings
https://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
-Hoss
Filter search items based on creator permission settings
Posted by "Mugoma Joseph O." <mu...@yengas.com>.
Hello,
I have an application where document creators determine what access
permission (s) to give. The permissions are of the form:
1. EVERYONE => 1
2. MY_FRIENDS => 2
3. ME_ONLY => 3
Example:
1. User 1 creates doc1 and sets permission to EVERYONE
2. User 2 created doc2 and sets permission to ME_ONLY
3. User 3 creates doc3 and sets permissions to MY_FRIENDS
In the index we have creator_ids representing the list of users who
created the document. e.g. for doc1:
creator_ids=[1]
The list of MY_FRIENDS (for each document creator) is determined by
different module, accessible at runtime.
A document can be created by more than one user, with each user giving
permissions independently. e.g.:
1. User 4 & 5 creates doc4. User 4 sets permission as EVERYONE while user
5 sets permission to ME_ONLY.
2. User 6 & 7 creates doc5. User 6 sets permissions to MY_FRIENDS while
user 7 sets permissive to ME_ONLY
For the case of multiple creators the less restrictive permission is used.
e.g.:
1. For doc4 the overriding permission will be EVERYONE
2. For doc5 the overriding permission will be MY_FRIENDS
I have checked several discussions and can't find one that fits the model
above:
1.
http://stackoverflow.com/questions/9222835/solr-permissions-filtering-results-depending-on-access-rights
2. https://issues.apache.org/jira/browse/SOLR-1872
3. https://issues.apache.org/jira/browse/SOLR-1834
4. http://lucene.472066.n3.nabble.com/Solr-and-Permissions-td2663289.html
5. http://stackoverflow.com/questions/6815250/fine-grained-security-in-solr
What's the best way handling this?
Thanks in advance.
Mugoma.