Saving Solr filter query.

2016-04-06 Thread Pritam Kute
Hi,

I have designed one web page on which user can search and filter his data
based on some term facets. I am using Apache Solr 5.3.1 for the same. It is
working perfectly fine.

Now my requirement is to save the query which I have executed on Solr, so,
in future, if I need to search the same results, I have to just extract the
saved query and make a query to Solr server (I mean the feature like saving
the favorite filters).

Any help would be useful. Thanks in advance.

Thanks & Regards,
--
*Pritam Kute*


Re: Saving Solr filter query.

2016-04-10 Thread Pritam Kute
Thanks so much Erick and John for your inputs.

This was surely helpful input for me. I tried using RDBMS and stored user
specific queries into RDBMS. It is working for me.

Thanks & Regards,
--
*Pritam Kute*

On Thu, Apr 7, 2016 at 3:01 AM, John Bickerstaff 
wrote:

> Right...  You can store that anywhere - but at least consider not storing
> it in your existing SOLR collection just because it's there...  It's not
> really the same kind of data -- it's application meta-data and/or
> user-specific data...
>
> Getting it out later will be more difficult than if you store it
> separately...
>
> A relational data store is ideal for this kind of thing - especially if
> it's associated with a user and you're already storing user data in an
> RDBMS.  It's just a string...
>
> Alternatively, a "user" document or a "saved search" document in another
> Solr collection could hold the data...
>
> On Wed, Apr 6, 2016 at 3:22 PM, Erick Erickson 
> wrote:
>
> > That's more of an app-level feature, there's nothing in Solr that does
> > this for you.
> >
> > Some people have used a different Solr collection to store the queries
> > as strings for display, but that's again something you build on top of
> > Solr, not a core feature.
> >
> > Best,
> > Erick
> >
> > On Wed, Apr 6, 2016 at 2:32 AM, Pritam Kute
> >  wrote:
> > > Hi,
> > >
> > > I have designed one web page on which user can search and filter his
> data
> > > based on some term facets. I am using Apache Solr 5.3.1 for the same.
> It
> > is
> > > working perfectly fine.
> > >
> > > Now my requirement is to save the query which I have executed on Solr,
> > so,
> > > in future, if I need to search the same results, I have to just extract
> > the
> > > saved query and make a query to Solr server (I mean the feature like
> > saving
> > > the favorite filters).
> > >
> > > Any help would be useful. Thanks in advance.
> > >
> > > Thanks & Regards,
> > > --
> > > *Pritam Kute*
> >
>


Problem with JSON sub-faceting

2015-08-27 Thread Pritam Kute
Do result grouping and tagging and excluding filters feature works with
JSON sub-faceting? If yes, it will be a great help if someone point me to
some documentation for the same.

Thanks in advance.

Thanks & Regards,
--
*Pritam Kute*


Problem in facet.contains

2015-07-02 Thread Pritam Kute
Hello All,

I am new user to solr and using solr 5.2.0 setup. I am trying to create
multiple types of facets on same field. I am filtering the facets by using "
*facet.contains*". The following is the data into field.

roles : {
 "0/Student Name/",
 "1/Student Name/1000/",
 "0/Center Name/",
 "1/Center Name/1000/"
}

I am trying to add facet field like following:

query.addFacetField("{!ex=role"+i+" key=role"+i+"
facet.contains=/"+roleType+"/}roles");

where, roleType is iterated and it contains values "Student Name", "Center
Name" etc. and value of i is 1.

But I am getting error as:

org.apache.solr.search.SyntaxError: Expected identifier at pos 63
str='{!key=role1 facet.contains=/Student Name/}roles'

It works nicely if there is no any space in the string. i.e. if I index doc
as "1/StudentName/1000/".

It would be great help if somebody helps me out in this issue. Please
replay if I am missing something in this. Or point me to best practice of
doing hierarchical faceting in solr.

Thanks in advance.

Thanks & Regards,
--
Pritam Kute


Re: Problem in facet.contains

2015-07-04 Thread Pritam Kute
Thanks Eric for your kind help.

The field I am using is of string type and I tried escaping also, but still
facet.contains doesn't work for it.

As you said facet.contains is expensive, I tried facet.prefix in place and
it is working fine for my requirement.

Thanks again.

Thanks & Regards
--
Pritam Kute

On Fri, Jul 3, 2015 at 10:13 PM, Erick Erickson 
wrote:

> Facets are collected over _tokens_, so the idea
> of a token containing a space is kind of odd. You
> _might_ be able to get past the parsing error by
> escaping the space.
>
> But I doubt that's what you want. I'm assuming that
> the field is a text field, broken up by whitespace
> or similar. In that case, there's no token at all
> that contains Student Name as that is two tokens.
> So I don't think this does what you intend even if
> you get past the parser.
>
> OTOH, if it's a string type you might get what you want
> by escaping.
>
> Now, all that said, what is the point here? Contains
> will always be more expensive as it has to iterate
> all of the terms to see if any match. If you _know_
> the tokens, even facet.prefix would be better. Or
> facet.query. Or
>
> Best,
> Erick
>
>
>
> On Thu, Jul 2, 2015 at 11:56 PM, Pritam Kute
>  wrote:
> > Hello All,
> >
> > I am new user to solr and using solr 5.2.0 setup. I am trying to create
> > multiple types of facets on same field. I am filtering the facets by
> using "
> > *facet.contains*". The following is the data into field.
> >
> > roles : {
> >  "0/Student Name/",
> >  "1/Student Name/1000/",
> >  "0/Center Name/",
> >  "1/Center Name/1000/"
> > }
> >
> > I am trying to add facet field like following:
> >
> > query.addFacetField("{!ex=role"+i+" key=role"+i+"
> > facet.contains=/"+roleType+"/}roles");
> >
> > where, roleType is iterated and it contains values "Student Name",
> "Center
> > Name" etc. and value of i is 1.
> >
> > But I am getting error as:
> >
> > org.apache.solr.search.SyntaxError: Expected identifier at pos 63
> > str='{!key=role1 facet.contains=/Student Name/}roles'
> >
> > It works nicely if there is no any space in the string. i.e. if I index
> doc
> > as "1/StudentName/1000/".
> >
> > It would be great help if somebody helps me out in this issue. Please
> > replay if I am missing something in this. Or point me to best practice of
> > doing hierarchical faceting in solr.
> >
> > Thanks in advance.
> >
> > Thanks & Regards,
> > --
> > Pritam Kute
>


Re: Unsubscribe from this mailing-list

2016-10-13 Thread Pritam Kute
Try sending mail to: solr-user-unsubscr...@lucene.apache.org from your
registered email.

Thanks & Regards,
--
*Pritam Kute*

On Wed, Oct 12, 2016 at 3:27 AM, prakash reddy 
wrote:

> Please remove me from the mailing list.
>


Re: Add me in solr mailing list

2017-08-01 Thread Pritam Kute
Hi Santosh Kumar,

You need to subscribe yourself to Solr mailing list. For more details refer
"Mailing List and IRC" section here:
http://lucene.apache.org/solr/community.html

Hope this helps you.

Regards
--
Pritam Kute

On Tue, Aug 1, 2017 at 5:38 PM, Santosh Kumar 
wrote:

> Hi,
> Please add me in solr mailing list.
>
>
> Thanks,
> Santosh
>