Re: Apache Solr 8 behaviour when ZK data is deleted

2019-07-25 Thread Prince Manohar
Thank you for this help Shawn.


On Wed, Jul 24, 2019 at 11:51 PM Shawn Heisey  wrote:

> On 7/24/2019 12:08 PM, Prince Manohar wrote:
> > If the zookeeper is wiped out of it's data, it looks like the Solr also
> > deleted all the indexes.
> >
> > I wanted to know if is normal that if the configsets related to a
> > collection are not inside zookeeper,  then its Solr indexes are deleted
> > from the file system?
>
> It's not so much the configsets missing... it's the fact that an empty
> ZK doesn't contain any info about the existing indexes at all.
>
> > Because in the previous versions, the collections were not visible on the
> > Solr console, but the index on file system was not deleted.
> >
> > Is it something added as a new feature in Apache Solr 8.0?
>
> The change that causes this was new in version 7.3.1.
>
> https://issues.apache.org/jira/browse/SOLR-12066
>
> I opened a new issue a few months ago for the problem you're describing:
>
> https://issues.apache.org/jira/browse/SOLR-13396
>
> Thanks,
> Shawn
>


-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Apache Solr 8 behaviour when ZK data is deleted

2019-07-24 Thread Prince Manohar
My Question is related to Apache Solr 8.

If the zookeeper is wiped out of it's data, it looks like the Solr also
deleted all the indexes.

I wanted to know if is normal that if the configsets related to a
collection are not inside zookeeper,  then its Solr indexes are deleted
from the file system?

Because in the previous versions, the collections were not visible on the
Solr console, but the index on file system was not deleted.

Is it something added as a new feature in Apache Solr 8.0?

I could not find anything in the Release Notes.

Thanks,





-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Solr Wiki Page Down

2019-07-14 Thread Prince Manohar
Apace Solr's wiki page is down.
I tried accessing the following pages, but it's showing  404 Not Found.

 https://wiki.apache.org/solr
 https://wiki.apache.org/solr/IRCChannels

And so on.





-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Re: Sort on PointFieldType

2019-07-05 Thread Prince Manohar
Thanks a lot.

On Thu, Jul 4, 2019 at 9:19 PM Shawn Heisey  wrote:

> On 7/4/2019 9:14 AM, Prince Manohar wrote:
> > I am using Solr version *6.4.2*. I got your answers.
> >
> > I have another question. Can we use a *Range query* on point field?
> >
> > I am trying to do something like
> >
> > *fq=abc.pqr_d:[ 1500 TO 2000 ]*
> >
> > Is it a valid filter?
>
> Yes.  In fact, range queries are one of the areas where Point fields are
> faster than Trie fields.
>
> Something that Point fields do slower than Trie is a simple value
> lookup.  A query like this:
>
> abc.pqr_d:5000
>
> Thanks,
> Shawn
>


-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Re: Sort on PointFieldType

2019-07-04 Thread Prince Manohar
Thanks for the answers.
I am using Solr version *6.4.2*. I got your answers.

I have another question. Can we use a *Range query* on point field?

I am trying to do something like


*fq=abc.pqr_d:[ 1500 TO 2000 ]*

Is it a valid filter?




On Thu, Jul 4, 2019 at 1:47 PM Yasufumi Mizoguchi 
wrote:

> Hi,
>
> Which version of Solr are you using?
> And what is the field settings?
>
> Reference guide says that sorting with single valued *PointType fields
> requires docValues="true" option in field settings.
>
> https://lucene.apache.org/solr/guide/8_1/field-types-included-with-solr.html#field-types-included-with-solr
>
> Thanks,
> Yasufumi
>
> 2019年7月4日(木) 3:50 Prince Manohar :
>
> > Hi,
> > I have a *field* that is of *PointType *and I tried to sort on that
> field.
> > But looks like sorting does not work on PointType.
> > Or am I doing something wrong?
> > Find my query below:-
> >
> >
> http://localhost:8983/solr/testcollection/select?indent=on&q=*:*&sort=abc.pqr_d
> > DESC&wt=json
> > <
> http://localhost:8983/solr/testcollection/select?indent=on&q=*:*&sort=abc.pqr_dDESC&wt=json
> >
> > <
> >
> http://localhost:8983/solr/markustest1/select?indent=on&q=*:*&sort=facet_en_price.UNITED_STATES_d%20DESC&wt=json
> > >
> >
> > --
> > *Regards,
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *Prince Manohar
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *B.Tech (InformationTechnology)
> > <https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
> > *Bengaluru
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> > *+91 7797045315
> > <
> >
> https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf
> > >*
> >
>


-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Sort on PointFieldType

2019-07-03 Thread Prince Manohar
Hi,
I have a *field* that is of *PointType *and I tried to sort on that field.
But looks like sorting does not work on PointType.
Or am I doing something wrong?
Find my query below:-
http://localhost:8983/solr/testcollection/select?indent=on&q=*:*&sort=abc.pqr_d
DESC&wt=json
<http://localhost:8983/solr/markustest1/select?indent=on&q=*:*&sort=facet_en_price.UNITED_STATES_d%20DESC&wt=json>

-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*


Re: Solr query particular value of a field last

2019-04-14 Thread Prince Manohar
Basically, you need to boost some documents low.

For this, you can either use solr’s Boost Query ( bq ) or Boost Function (bf)
parameter.

For example in your case:-

If you want the documents with countries A and B to show last in the
result, you can use:-

bq=( country:A OR country:B )^-1

Note that a negative boosting has been done here.

I would say this approach is better than sorting because other documents
maintain their actual order and only those documents are boosted up or
down, which satisfy the condition.




On Sun, Apr 14, 2019 at 4:03 PM Saurabh Sharma 
wrote:

> fq=country :c1 OR c2 OR c3&sort=if(termfreq (country,c2),0,1) desc
>
>
> Correcting query.
>
> On Sun 14 Apr, 2019, 3:36 PM Saurabh Sharma, 
> wrote:
>
> > I would suggest to sort on the basis of condition. First find all the
> > records and then sort on the basis of condition where you will be putting
> > spcific countries below other.
> >
> > fq=country :c1 OR c2 OR c3&sort=if(termfreq (country,c2),1,0) desc
> >
> >
> > Here we are putting c2 below c1 and c3.
> >
> > You can also try term search and boost specific terms.
> >
> > Thanks and regards
> > Saurabh
> >
> > On Sun 14 Apr, 2019, 1:49 PM Anuj Bhargava,  wrote:
> >
> >> I have a field *country*. I need to do a search in which I need to show
> >> the
> >> search result of a country or some countries, last in the search result
> >> for
> >> eg. country code *BD*. What query should I use to get the above result.
> >>
> >> fq=country:???&q=*%3A*
> >>
> >
>


-- 
*Regards,
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*Prince Manohar
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*B.Tech (InformationTechnology)
<https://rawgit.com/princemanohar/cv/master/Prince_Manohar_Resume.pdf>*
*Bengaluru
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*
*+91 7797045315
<https://rawgit.com/princemanohar/cv/master/resume7797045315-princemanohar0909.pdf>*