Re: Learning to rank - Bad Request

2018-03-04 Thread kusha.pande
Hi Vincent,

Can you please elaborate more when u say u posted 'posted name feature one
by one' ?

I am getting the same error when i am trying to upload features for any
other collection other than techproducts.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Rename solr to another name

2018-03-04 Thread Shawn Heisey

On 3/4/2018 9:35 PM, Zheng Lin Edwin Yeo wrote:

Just to check, is solr.xml hard-coded at the *SolrXmlConfig.java* ?

Which Jar file is this class located at, and do we need to recompile it so
that it can take on the new name?


I'm pretty sure that is indeed hard-coded in the java code.

I think I'm beginning to see a pattern.  It sounds like you want to 
install Solr without anyone knowing that it's Solr you've installed.


I wish you luck with that.  It's going to take a very large amount of 
effort to eliminate all traces of the software name. And if you ever 
upgrade it, you're going to have to do it all again on the new version.  
If anyone looks at the installation and has had any experience with Solr 
at all, they are going to know what software it is, even if you remove 
all mention of the name.


To accomplish that goal, obtain the services of somebody who's very 
talented at system administration and Java programming.  Expect to pay 
them well.  Walter is right -- nobody here is interested in doing the 
job you want done for free via email.


Thanks,
Shawn



Re: Rename solr to another name

2018-03-04 Thread Zheng Lin Edwin Yeo
Just to check, is solr.xml hard-coded at the *SolrXmlConfig.java* ?

Which Jar file is this class located at, and do we need to recompile it so
that it can take on the new name?

Regards,
Edwin

On 5 March 2018 at 11:55, Walter Underwood  wrote:

> I hope you are charging the client double for this requirement. Because it
> is a bad, expensive requirement.
>
> Good luck, because nobody on this list actually wants to do this with Solr.
>
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
>
> > On Mar 4, 2018, at 7:23 PM, Zheng Lin Edwin Yeo 
> wrote:
> >
> > Hi,
> >
> > I have managed to rename the JAR file to names like my-cell-6.5.1.jar.
> >
> > Currently the main thing which I have problem renaming is the solr.xml,
> > which I would like to rename to my.xml.
> >
> > Any idea if this is possible? I can't find it in the bin directory, and
> > also in the solr.cmd that we call when we start Solr.
> >
> > Regards,
> > Edwin
> >
> >
> > On 3 March 2018 at 08:56, Zheng Lin Edwin Yeo 
> wrote:
> >
> >> Hi Shawn,
> >>
> >> Thanks for the info.
> >>
> >> I have managed to change the one that starts Solr, and it's working so
> far.
> >>
> >> Now I'm working on changing things like solr.xml and the JAR file in the
> >> dist directory, like solr-cell-6.5.1.jar to names like
> my-cell-6.5.1.jar.
> >> Can we change the name of those JAR file as well?
> >>
> >> We are customizing it based on the requirements for the project that we
> >> are handling.
> >>
> >> Regards,
> >> Edwin
> >>
> >> On 3 March 2018 at 08:20, Shawn Heisey  wrote:
> >>
> >>> On 3/2/2018 4:07 PM, Zheng Lin Edwin Yeo wrote:
>  Does this means that we have to recompile some of the JAR files that
> >>> comes
>  with Solr in order for it to work? As they have been hard-coded with
> >>> things
>  like "solr-webapp"?
> >>>
> >>> I don't see it in any of the java source code, so a recompile wouldn't
> >>> be necessary.  But most of the scripts in the bin directory and other
> >>> places have it hardcoded, including the one that starts Solr.
> >>>
> >>> Once you start down the road of changing these things, you're probably
> >>> going to be forever hunting for things that don't work right and
> working
> >>> to get them fixed.  Better to just leave it alone and be sure it'll
> work.
> >>>
> >>> Thanks,
> >>> Shawn
> >>>
> >>>
> >>
>
>


Re: Rename solr to another name

2018-03-04 Thread Walter Underwood
I hope you are charging the client double for this requirement. Because it is a 
bad, expensive requirement.

Good luck, because nobody on this list actually wants to do this with Solr.

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)

> On Mar 4, 2018, at 7:23 PM, Zheng Lin Edwin Yeo  wrote:
> 
> Hi,
> 
> I have managed to rename the JAR file to names like my-cell-6.5.1.jar.
> 
> Currently the main thing which I have problem renaming is the solr.xml,
> which I would like to rename to my.xml.
> 
> Any idea if this is possible? I can't find it in the bin directory, and
> also in the solr.cmd that we call when we start Solr.
> 
> Regards,
> Edwin
> 
> 
> On 3 March 2018 at 08:56, Zheng Lin Edwin Yeo  wrote:
> 
>> Hi Shawn,
>> 
>> Thanks for the info.
>> 
>> I have managed to change the one that starts Solr, and it's working so far.
>> 
>> Now I'm working on changing things like solr.xml and the JAR file in the
>> dist directory, like solr-cell-6.5.1.jar to names like my-cell-6.5.1.jar.
>> Can we change the name of those JAR file as well?
>> 
>> We are customizing it based on the requirements for the project that we
>> are handling.
>> 
>> Regards,
>> Edwin
>> 
>> On 3 March 2018 at 08:20, Shawn Heisey  wrote:
>> 
>>> On 3/2/2018 4:07 PM, Zheng Lin Edwin Yeo wrote:
 Does this means that we have to recompile some of the JAR files that
>>> comes
 with Solr in order for it to work? As they have been hard-coded with
>>> things
 like "solr-webapp"?
>>> 
>>> I don't see it in any of the java source code, so a recompile wouldn't
>>> be necessary.  But most of the scripts in the bin directory and other
>>> places have it hardcoded, including the one that starts Solr.
>>> 
>>> Once you start down the road of changing these things, you're probably
>>> going to be forever hunting for things that don't work right and working
>>> to get them fixed.  Better to just leave it alone and be sure it'll work.
>>> 
>>> Thanks,
>>> Shawn
>>> 
>>> 
>> 



Re: Rename solr to another name

2018-03-04 Thread Zheng Lin Edwin Yeo
Hi,

I have managed to rename the JAR file to names like my-cell-6.5.1.jar.

Currently the main thing which I have problem renaming is the solr.xml,
which I would like to rename to my.xml.

Any idea if this is possible? I can't find it in the bin directory, and
also in the solr.cmd that we call when we start Solr.

Regards,
Edwin


On 3 March 2018 at 08:56, Zheng Lin Edwin Yeo  wrote:

> Hi Shawn,
>
> Thanks for the info.
>
> I have managed to change the one that starts Solr, and it's working so far.
>
> Now I'm working on changing things like solr.xml and the JAR file in the
> dist directory, like solr-cell-6.5.1.jar to names like my-cell-6.5.1.jar.
> Can we change the name of those JAR file as well?
>
> We are customizing it based on the requirements for the project that we
> are handling.
>
> Regards,
> Edwin
>
> On 3 March 2018 at 08:20, Shawn Heisey  wrote:
>
>> On 3/2/2018 4:07 PM, Zheng Lin Edwin Yeo wrote:
>> > Does this means that we have to recompile some of the JAR files that
>> comes
>> > with Solr in order for it to work? As they have been hard-coded with
>> things
>> > like "solr-webapp"?
>>
>> I don't see it in any of the java source code, so a recompile wouldn't
>> be necessary.  But most of the scripts in the bin directory and other
>> places have it hardcoded, including the one that starts Solr.
>>
>> Once you start down the road of changing these things, you're probably
>> going to be forever hunting for things that don't work right and working
>> to get them fixed.  Better to just leave it alone and be sure it'll work.
>>
>> Thanks,
>> Shawn
>>
>>
>


Re: Changing Leadership in SolrCloud

2018-03-04 Thread Florian Gleixner
On 27.02.2018 09:36, zahra121 wrote:
> Suppose I have a node which is a leader in SolrCloud.
> 
> When I block this leader's SolrCloud and Zookeeper ports by the command
> "firewall-cmd --remove-port=/tcp --permanent", the leader does not
> change automatically and this leader status remains active in solr admin UI.
> 
> Thus, I decided to change the leader manually. I tried REBALANCELEADERS and
> ADDROLE commands in solrCloud, however the leader did not change!
> 
> How can I manually change the leader if the firewall blocks the SolrCloud
> ports from being listened?
> 

From the manpage of firewall-cmd:

-
--permanent

The permanent option --permanent can be used to set options
permanently. These changes are not effective immediately, only after
service restart/reload or system reboot. Without the --permanent option,
a change will only be part of the runtime configuration.
-

So you should also apply it to the runtime configuration. Also note,
that this is a stateful firewall. So rules basically apply to connection
establishment. Changes in firewall rules probably do not interrupt
running connections. You should check that with tcpdump.



signature.asc
Description: OpenPGP digital signature


Re: Replicas: sending query to leader and replica simultaneously

2018-03-04 Thread SOLR4189
Today I found something interesting that exists in ElasticSearch. It's called
Adaptive Replica Selection 
https://www.elastic.co/guide/en/elasticsearch/reference/6.1/search.html

Did you hear about it? Maybe exists something in SOLR? I think it's very
useful for my case.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html