solrcloud

Solr sort by the value of function query does not work

左心房为你撑大大i 提交于 2019-12-12 05:37:23
问题 I'm working on a feature which relies on sorting the value of function query. Function query is as below : http://localhost:8983/solr/collection/select?q=*:*&sort=if(exists(f1_t), f1_t, theme)+ASC&wt=json&indent=true The sort function is " if(exists(f1_t), f1_t, theme) ASC " So basically what I'm doing is if the field " f1_t " (which is a dynamic field of type TextField) exists then the sorting is based on the value of the field else the sorting is based on the value of "theme" which is also

Solr : Importing data with single SP call

随声附和 提交于 2019-12-12 04:49:31
问题 I have one solr collection called document. In that there are fields like id,name,associated_folder,is_associate & other The field is_associate depends on associated_folder. I am importing data using Data Import provided in Solr Dashboard My problem is that Stored Procudeure which returns data like : # id name associated_folder is_associate 1 DOC1 DOCNAME 1001,1002,1003 true 2 DOC2 DOCNAME 4001,4002,4003 true 3 DOC3 DOCNAME -1 false & in my schema file associated_folder declare like : <field

SolrCloud is detecting non-existing nodes

前提是你 提交于 2019-12-12 04:46:36
问题 I am having an interesting situation with SolrCloud. Basically, I dont know why, but Solr instance, which does not in the cloud normally, is displayed on SolrCloud page and also visible in live_nodes path in Zookepeer. Here are details about the situation: I have one Solr instance, running as a standalone application on a virtual machine, located on a remove machine. We will call it virtual1 from now on. This is the script for running it: java -server -XX:+UnlockExperimentalVMOptions -XX:

Is there any loss of functionality if I use load balancer which does not communicate with zookeeper in solrcloud?

懵懂的女人 提交于 2019-12-12 02:18:34
问题 In a solr cloud setup, there are 8 solr nodes and 3 zookeeper nodes. There is one load balancer that gets all the indexing and search queries and distributes them to these 8 solr nodes in solr cloud. Before sending the solr query to particular solr node, it first checks if the service endpoint is active. Only if it is active then it sends the request to that particular solr node. Zookeeper handles the elections of leaders in shard. In this setup, zookeeper is not handling the query

Load balancer for solrcloud

那年仲夏 提交于 2019-12-12 02:08:24
问题 We are hitting one of the solr instances in solrcloud architecture directly from a .Net application. If that instance is down, then the request need to be served by another live instance. This is possible with load balancer. What options are available for this and which can be used best? Solr cloud is in Windows. Please suggest since Solrj is not being used here. Thanks in advance. 回答1: Any load balancer would do. We are using nginx without trouble. If you need something analogous to SolrJ,

Solr cloud distributed search on collections

笑着哭i 提交于 2019-12-11 19:53:28
问题 Currently I have a zookeeper instance controlling replication on 3 physical servers. It is the solr integrated zookeeper. 1 shard, 1 collection. I have a new requirement in which I will need a new static solr instance (1 new collection, no replication). Same schema as previous collection. A copy of this instance will also be placed on the 3 physical servers mentioned above. A caveat is that I need to perform distributed searches across the 2 collections and have the results blended. Thanks to

SolrCloud OpenNLP error Can't find resource 'opennlp/en-sent.bin' in classpath or '/configs/_default'

梦想的初衷 提交于 2019-12-11 15:41:08
问题 I have error when using Apache OpenNLP with Solr (ver. 7.3.0) in Cloud mode. When I add field type to managed-schema using open nlp like this: <fieldType name="text_opennlp" class="solr.TextField"> <analyzer> <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="opennlp/en-sent.bin" tokenizerModel="opennlp/en-token.bin" /> </analyzer> </fieldType> <field name="content" type="text_opennlp" indexed="true" termOffsets="true" stored="true" termPayloads="true" termPositions="true"

Solr deletes already created shards when changing memory size

旧巷老猫 提交于 2019-12-11 15:28:36
问题 I am using solrcloud in 5.5.5 version. I have created a collection with two shards with default memory size of 512m. Then my shards got huge data from other system. Now I have 1.2 million documents. I got out of memory error. So I increased SOLR_HEAP (SOLR_HEAP="2g") in solr.in.sh file. After some time, I have noticed that, two created shards got removed from disk. Please anyone have idea about this 来源: https://stackoverflow.com/questions/54240237/solr-deletes-already-created-shards-when

How to compare two columns using Solr?

*爱你&永不变心* 提交于 2019-12-11 12:13:32
问题 Compare two columns in solr if two fields are equal display true or else false. CASE WHEN o_is_follow = o_follow_id THEN 'TRUE' ELSE 'FALSE'. 回答1: As per as I know comparing one field to another within a document is not supported in either Solr . I think it can be achieved by one option of creating another field while indexing only. You can have another field (boolean) . Make this field as boolean type and can be used while searching. Create a o_is_follow_present field and set it to true for

Does SolrCloud's scalability extend to indexing?

百般思念 提交于 2019-12-11 11:26:23
问题 In all the literature I've seen, the scalability of SolrCloud appears to concern querying only. Meaning, replication and sharding distributes the load of client queries accross greater CPU and wider bandwidth. But what about Indexing? Does SolrCloud's scalability improving index performance? Can it be configured to speed up index time? In my case, we need to commit new content to the index frequently; does that special case change anything. Mark Miller's presentation from Lucene Revolution