float or string type for a field with whole number and decimal number values?

2016-05-29 Thread Derek Poh

Hi

I have a field that is of "int" type currentlyand it's values are whole 
numbers.


stored="true" multiValued="false"/>


Due tochange inbusiness requirement, this field will need to take in 
decimal numbers as well.

This fieldis sorted onand filter by range (field:[ 1 to *]).

Should I change the field type to "float" or "string"?
For the change to take effect, do I need to delete all documents in the 
index and do a full indexing? Or I can just do a full indexing without 
theneed to delete all documents first?


Derek

--
CONFIDENTIALITY NOTICE 

This e-mail (including any attachments) may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please inform the sender immediately and delete this e-mail (including any attachments) from your computer, and you must not use, disclose to anyone else or copy this e-mail (including any attachments), whether in whole or in part. 


This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.

Re: float or string type for a field with whole number and decimal number values?

2016-05-29 Thread Derek Poh

I am using solr 4.10.4.

On 5/29/2016 3:52 PM, Derek Poh wrote:

Hi

I have a field that is of "int" type currentlyand it's values are 
whole numbers.


stored="true" multiValued="false"/>


Due tochange inbusiness requirement, this field will need to take in 
decimal numbers as well.

This fieldis sorted onand filter by range (field:[ 1 to *]).

Should I change the field type to "float" or "string"?
For the change to take effect, do I need to delete all documents in 
the index and do a full indexing? Or I can just do a full indexing 
without theneed to delete all documents first?


Derek

--
CONFIDENTIALITY NOTICE
This e-mail (including any attachments) may contain confidential 
and/or privileged information. If you are not the intended recipient 
or have received this e-mail in error, please inform the sender 
immediately and delete this e-mail (including any attachments) from 
your computer, and you must not use, disclose to anyone else or copy 
this e-mail (including any attachments), whether in whole or in part.
This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.



--
CONFIDENTIALITY NOTICE 

This e-mail (including any attachments) may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please inform the sender immediately and delete this e-mail (including any attachments) from your computer, and you must not use, disclose to anyone else or copy this e-mail (including any attachments), whether in whole or in part. 


This e-mail and any reply to it may be monitored for security, legal, 
regulatory compliance and/or other appropriate reasons.

Solr 6 CDCR does not work

2016-05-29 Thread Adam Majid Sanjaya
I’m testing Solr 6 CDCR, but it’s seems not working.

Source configuration:

  
targetzkip:2181
corehol
corehol
  

  
1
1000
128
  

  
5000
  



  
${solr.ulog.dir:}
  


Target(s) configuration:

  
disabled
  



  
  



  
cdcr-proccessor-chain
  



  
${solr.ulog.dir:}
  


Source Log: no cdcr
Target Log: no cdcr

Create a core (solrconfig.xml modification directly from the folder
data_driven_schema_configs):
#bin/solr create -c corehol -p 8983

Start cross-data center replication by running the START command on the
source data center
http://sourceip::8983/solr/corehol/cdcr?action=START

Disable buffer by running the DISABLEBUFFER command on the target data
center
http://targetip::8983/solr/corehol/cdcr?action=DISABLEBUFFER

The documents are not replicated to the target zone.

What should I examine?


After Solr 5.5, mm parameter doesn't work properly

2016-05-29 Thread Issei Nishigata
Hi,

“mm" parameter does not work properly, when I set "q.op=AND” after Solr 5.5.
In Solr 5.4, mm parameter works expectedly with the following setting.

---
[schema]

  
    
  



[request]
http://localhost:8983/solr/collection1/select?defType=edismax&q.op=AND&mm=2&q=solar
—

After Solr 5.5, the result will not be the same as Solr 5.4.
Has the setting of mm parameter specs, or description of file setting changed?


[Solr 5.4]

...
  
    2
    solar
    edismax
    AND
  
...

  
    0
    
      solr
    
  


  solar
  solar
  
  (+DisjunctionMaxQuerytext:so text:ol text:la text:ar)~2/no_coord
  
  +(((text:so text:ol text:la 
text:ar)~2))
  ...




[Solr 6.0.1]


...
  
    2
    solar
    edismax
    AND
  
...

  
    solar
    solar
    
    (+DisjunctionMaxQuery(((+text:so +text:ol +text:la +text:ar/no_coord
    
    +((+text:so +text:ol +text:la 
+text:ar))
...


As shown above, parsedquery also differs from Solr 5.4 and Solr 6.0.1(after 
Solr 5.5).


—
Thanks 
Issei Nishigata


Re(2): How to save index data to other place? [scottchu]

2016-05-29 Thread scott.chu

Thanks! I'll see to it.  There're a lot to learn for CentOS, Geez.

scott.chu,scott@udngroup.com
2016/5/30 (週一)
- Original Message - 
From: Shawn Heisey 
To: solr-user 
CC: 
Date: 2016/5/27 (週五) 15:13
Subject: Re: How to save index data to other place? [scottchu]


On 5/26/2016 8:51 PM, scott.chu wrote: 
> I want to migrate my Solrcloud from Windows to CentOS. Because I am 
> new to CentOS, not familiar with how to install Solr on it and I did a 
> lot of config in my Solrcloud on Windows, so I use ftp to upload 
> solr-5.4.1 and zookeeper-3.4.6 folders to 3 different servers running 
> CentOS. (They are all under /local). Then I tweak something in 3rd 
> machine (See my other post titled "Can "Using cp replica and modifying 
> core.properties" rather than ADDREPLICA API work?") and make my 
> Solrcloud run with 3 replicas ok. I do wish to follow the default 
> folder/file convention of solr. So can you show me (or hint me) how 
> to: * Install solr and zookeeper with install shell script under 
> CentOS 6.4? * How to auto start solr and zookeeper under CentOS 6.4? 

Installing Solr: 

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-RuntheSolrInstallationScript
 

Zookeeper is a completely separate project from Solr. For best results, 
you should consult their documentation: 

http://zookeeper.apache.org/doc/r3.4.8/zookeeperAdmin.html 

I can give you some quick install steps based on what I have done in the 
past. I have no idea whether this is how the zookeeper project would 
recommend doing it, but if it's done correctly, I know that it works. 

Extract the download tarball into some location, like /opt. If you 
choose that location and extract the latest version, you will have 
/opt/zookeeper-3.4.8 to work with. The rest of this assumes that 
directory location. You may need to adjust these steps if you choose 
another location: 

Create a shell script named /usr/local/sbin/zkrun with these contents: 

-- 
#!/bin/sh 

# chkconfig: - 75 50 
# description: Starts and stops Zookeeper 

cd /opt/zookeeper 
bin/zkServer.sh $1 
-- 

Change to the /opt directory and do these commands: 

ln -s zookeeper-3.4.8 zookeeper 
chmod +x /usr/local/sbin/zkrun 
ln -s /usr/local/sbin/zkrun /etc/init.d/zookeeper 
chkconfig --add zookeeper 
chkconfig zookeeper on 

Consult zookeeper documentation on how to configure the newly installed 
server -- which consists of creating /opt/zookeeper/conf/zoo.cfg and 
${dataDir}/myid A common setting for the dataDir config parameter is 
"zoodata". This is a path that is relative to the current working 
directory. If you use my little startup script with that value, the 
full path becomes opt/zookeeper/zoodata. Once it's configured, you can 
start the zookeeper service. This is a slightly redacted copy of my 
zookeeper config file: 

- 
# The number of milliseconds of each tick 
tickTime=2000 
# The number of ticks that the initial 
# synchronization phase can take 
initLimit=10 
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement 
syncLimit=5 
# the directory where the snapshot is stored. 
# do not use /tmp for storage, /tmp here is just 
# example sakes. 
dataDir=zoodata 
# the port at which the clients will connect 
clientPort=2181 
# 
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge. 
# 
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance 
# 
# The number of snapshots to retain in dataDir 
#autopurge.snapRetainCount=3 
# Purge task interval in hours 
# Set to "0" to disable auto purge feature 
#autopurge.purgeInterval=1 
server.1=zoo1.REDACTED.com:2888:3888 
server.2=zoo2.REDACTED.com:2888:3888 
server.3=zoo3.REDACTED.com:2888:3888 
- 

Thanks, 
Shawn 



- 
未在此訊息中找到病毒。 
已透過 AVG 檢查 - www.avg.com 
版本: 2015.0.6201 / 病毒庫: 4568/12324 - 發佈日期: 05/29/16


Fw: SolrCloud and Zookeeper integration issue in .net application

2016-05-29 Thread shivendra tiwari
Hi,

This is my first time asking the question. I am facing some problems in Solr. 
Could you please help me out. Below is my question:

Currently I am using Solr lower version it is working fine but now, we are 
trying to configure SolrCloud for load balance so,
I have configured-  2 Solr nodes and 1 ZooKeeper node, created collections and 
shards also getting data from SQL server on Solr but i need to call 
SolrCloud in .net application. Please tell me, need to call zookeeper or 
SolrCloud and How it will configure in my .net application and what i need 
to configure it please help anyone. 

Warm Regards!

Shivendra Kumar Tiwari

From: shivendra.tiwari 
Sent: Friday, May 27, 2016 5:27 PM
To: solr-user@lucene.apache.org 
Subject: Fw: SolrCloud and Zookeeper integration issue in .net application

Hi,

This is my first time asking the question. I am facing some problems in Solr. 
Could you please help me out. Below is my question:

Currently I am using Solr lower version it is working fine but now, we are 
trying to configure SolrCloud for load balance so,
I have configured-  2 Solr nodes and 1 ZooKeeper node, created collections and 
shards also getting data from SQL server on Solr but i need to call 
SolrCloud in .net application. Please tell me, need to call zookeeper or 
SolrCloud and How it will configure in my .net application and what i need 
to configure it please help anyone. 

Warm Regards!

Shivendra Kumar Tiwari

From: shivendra.tiwari 
Sent: Friday, May 27, 2016 1:00 PM
To: solr-user@lucene.apache.org 
Subject: SolrCloud and Zookeeper integration issue in .net application

Hi,

Currently I am using Solr lower version it is working fine but now, we are 
trying to configure SolrCloud for load balance so,
I have configured-  2 Solr nodes and 1 ZooKeeper node, created collections and 
shards also getting data from SQL server on Solr but i need to call 
SolrCloud in .net application. Please tell me, need to call zookeeper or 
SolrCloud and How it will configure in my .net application and what i need 
to configure it please help anyone.


Warm Regards!
Shivendra Kumar Tiwari 


Re: SolrCloud and Zookeeper integration issue in .net application

2016-05-29 Thread shivendra.tiwari

Hi Shawn,

Thank you for the reply. What I meant was that have configured Solr5.3 and 
Zookeeper 3.4.8.
Currently using solrnet for Master and Slave concept but trying to use solr 
in cloud mode as mentioned previous and these clients doesn't have solution 
to talk to multiple solr server, I hope so.


You have mentioned about load balancer please tell me what is load balancer 
(It is Hardware load balancer?) and how to configure on my machine for .net 
client.


Thanks in advance.


Warm Regards!
Shivendra

-Original Message- 
From: Shawn Heisey

Sent: Friday, May 27, 2016 9:20 PM
To: solr-user@lucene.apache.org
Subject: Re: Fw: SolrCloud and Zookeeper integration issue in .net 
application


On 5/27/2016 5:57 AM, shivendra.tiwari wrote:

Currently I am using Solr lower version it is working fine but now, we are
trying to configure SolrCloud for load balance so,
I have configured-  2 Solr nodes and 1 ZooKeeper node, created collections 
and

shards also getting data from SQL server on Solr but i need to call
SolrCloud in .net application. Please tell me, need to call zookeeper or
SolrCloud and How it will configure in my .net application and what i need
to configure it please help anyone.


Unless you write the code to do it, a .net application will not know how
to talk to zookeeper.

There are multiple choices for .net clients which know how to talk to
Solr via HTTP:

https://wiki.apache.org/solr/IntegratingSolr#C.23_.2F_.NET

I do not know if any of these clients know how to talk to multiple Solr
servers so you don't have a single point of failure.  If they don't, you
will need a load balancer in front of your cloud.

Solr itself will load balance the requests across the cloud, but if your
application only talks HTTP to a single server:port, that instance of
Solr becomes a single point of failure.

For redundancy, you will need three zookeeper nodes:

http://zookeeper.apache.org/doc/r3.4.8/zookeeperAdmin.html#sc_zkMulitServerSetup

Thanks,
Shawn