Best field type for boosting all documents

2019-09-16 Thread Ashwin Ramesh
Hi everybody, We have a usecase where we want to push a popularity boost for each document in our collection. When a user searches for any term, we would like to arbitrarily add an additional boost by this value (which is different for each document). E.g. q=foo&boost=def(popularityBoostField,1)

Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Sebastian Riemer
Dear mailing list, I would like to know: Is there some simple way to rename a field in all documents in my solr index? I am using a dynamic schema definition, and I've introduced some new copyField-instructions. Those make it necessary to reindex all documents. It would help me a great deal to

Re: Best field type for boosting all documents

2019-09-16 Thread Paras Lehana
Hey Ashwin, We, at Auto-Suggest, had the similar requirement. We wanted to boost suggestions as per their demand. For this, we also introduced a new *integer* field *demand*. We simply boosted it by (we use some mathematical transformations so showing the basic version here): *&boost=demand* We

Re: Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Alexandre Rafalovitch
I don't think you can rename it in the index. However, you may be able to rename it during the query: https://lucene.apache.org/solr/guide/6_6/common-query-parameters.html#CommonQueryParameters-FieldNameAliases Or, if you use eDisMax, during query rewriting: https://lucene.apache.org/solr/guide/6

Re: Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Erick Erickson
If you’re reindexing anyway, I recommend you index to a new collection then use “collection aliasing” to point to the new one, that’s cleanest. There’s no way to rename fields. Further, the meta-data will be carried in the index forever even if all docs have been reindexed into an existing colle

HDFS Shard Split

2019-09-16 Thread Joe Obernberger
Hi All - added a couple more solr nodes to an existing solr cloud cluster where the index is in HDFS.  When I try to a split a shard, I get an error saying there is not enough disk space.  It looks like it is looking on the local file system, and not in HDFS. "Operation splitshard casued exce

Cannot index into solr 8.1.1

2019-09-16 Thread Bhuvanesh
Hi team, Recently I created a cloud Solr 8.1.1 with zookeeper similar to cloud Solr 6.6.2 which is in use. All configurations and schema files are exactly alike, but when I try to index the same documents Solr throws *cannot change field "FIELD_NAME" from* *index options=DOCS_AND_FREQS_AND_POSITIO

Re: Cannot index into solr 8.1.1

2019-09-16 Thread Shawn Heisey
On 9/16/2019 10:18 AM, Bhuvanesh wrote: Recently I created a cloud Solr 8.1.1 with zookeeper similar to cloud Solr 6.6.2 which is in use. All configurations and schema files are exactly alike, but when I try to index the same documents Solr throws *cannot change field "FIELD_NAME" from* *index op

Re: Cannot index into solr 8.1.1

2019-09-16 Thread Bhuvanesh
Hi Shawn, Thanks for your reply. The core is used to test the solr setup by creating a trial collection. But other than that every collection created are exactly the same as existing one. I don't think this would create a problem, please brief me if it is otherwise. Thanks and regards, Bhuvanesh

Re: Cannot index into solr 8.1.1

2019-09-16 Thread Erick Erickson
99.9% sure that if you look closely, you’ll find that these fields are inappropriately defined. What may have happened is that there are tighter checks in Solr 8 that throw errors where the contradictory definitions were silently ignored. For instance you report one error: SORTED_NUMERIC to SO

Re: upgrading from solr4 to solr8 searches taking 4 to 10 times as long to return

2019-09-16 Thread Russell Bahr
Hi Toke, I just checked and the link is still active. I am back from DC today and am going through and continuing to work on the issue. Here is the link. Any insights from you on this is appreciated. I am going back through the previous suggestions and am in the process of trying them now. T

Why I receive permission denied when running as root

2019-09-16 Thread Raymond Xie
[root@pocnnr1n1 solr-8.2.0]# ll total 88 -rw-r--r-- 1 root root 4023 Jul 19 09:09 README.md -rw-r--r-- 1 root root 32153 Jul 19 09:09 build.xml -rw-r--r-- 1 root root 27717 Jul 19 09:09 NOTICE.txt -rw-r--r-- 1 root root 12646 Jul 19 09:09 LICENSE.txt drwxr-xr-x 10 root root 174 Sep 16 21:13

Re: Why I receive permission denied when running as root

2019-09-16 Thread Paras Lehana
Hi Raymond, It's not recommended to run solr as root (security reasons ). Nevertheless, in order to answer your question, try this command: *sudo bin/solr start -force* >From Solr Control Script Refere