Re: Help with error on indexing mongoDB document by Solr DataImportHandler

2018-08-13 Thread Wendy2
Update: I resolved this issue by checking key:value to convert ObjectId to String: if(value instanceof ObjectId) { map.put(key, (String) value.toString()); } else { .. } A Solr happy user :-) -- Sent from:

RE: Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Kelly Rusk
Hi Chris, Thanks for the assistance. It is from a real CA. I was sent the .p12 Wildcard certificate and I need to use that to HTTPS my Solr address. Kelly -Original Message- From: Christopher Schultz Sent: Monday, August 13, 2018 12:59 PM To: solr-user@lucene.apache.org Subject:

SolrJ: build a SolrClient(-connection) with HttpClientUtil

2018-08-13 Thread Clemens Wyss DEV
What is the proposed way to get/build a SolrClient(-connection) via HttpClientUtil - respecting a given connection and response (socket) timeout (ROP_SO_TIMEOUT, PROP_CONNECTION_TIMEOUT) - making reuse of underlying http client (pooling?) - what else makes sense (such as PROP_ALLOW_COMPRESSION,

Re: SolrJ: build a SolrClient(-connection) with HttpClientUtil

2018-08-13 Thread ☼ R Nair
Or HttpSolrClient.builder as well On Mon, Aug 13, 2018, 2:50 PM ☼ R Nair wrote: > Pls use CloudSolrClient.builder(...).withHttpClient(...). > Best, Ravion > > On Mon, Aug 13, 2018, 2:40 PM Clemens Wyss DEV > wrote: > >> What is the proposed way to get/build a SolrClient(-connection) via >>

RE: Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Kelly Rusk
I have solved the issue. We found out that the certificate we were provided had a special character in it. The keystore did not like the special character. Once I imported the .p12 to the Windows Server, I exported a pfx from it with a password that had no special characters. After importing

Re: SolrJ: build a SolrClient(-connection) with HttpClientUtil

2018-08-13 Thread ☼ R Nair
Pls use CloudSolrClient.builder(...).withHttpClient(...). Best, Ravion On Mon, Aug 13, 2018, 2:40 PM Clemens Wyss DEV wrote: > What is the proposed way to get/build a SolrClient(-connection) via > HttpClientUtil > - respecting a given connection and response (socket) timeout > (ROP_SO_TIMEOUT,

Re: SOLR 7.x stable version

2018-08-13 Thread Jan Høydahl
Getting the latest release is almost always the best ting to do, unless it is a 7.x.0 release fresh out the gate. As soon as a few weeks has passed without a bugfix release being announced, that normally means it is solid :) Which means that 7.4.0 should be your go-to version right now. -- Jan

Re: Docvalue v.s. invert index

2018-08-13 Thread Shawn Heisey
On 8/13/2018 12:02 AM, Zahra Aminolroaya wrote: Thanks Erick, Shawn and Tomoko for complete answers. If I set both docvalue and indexed "true" in a field, will Solr understand to use which technique for faceting or searching? Or Is there any way to inform Solr to use which technique? Solr

Re: SolrJ: build a SolrClient(-connection) with HttpClientUtil

2018-08-13 Thread Shawn Heisey
On 8/13/2018 12:39 PM, Clemens Wyss DEV wrote: What is the proposed way to get/build a SolrClient(-connection) via HttpClientUtil - respecting a given connection and response (socket) timeout (ROP_SO_TIMEOUT, PROP_CONNECTION_TIMEOUT) - making reuse of underlying http client (pooling?) - what

Re: Help with error on indexing mongoDB document by Solr DataImportHandler

2018-08-13 Thread Shawn Heisey
On 8/13/2018 8:56 AM, Wendy2 wrote: Hi Solr users:I encountered the following error when indexing MongoDB data by using Solr DataImportHandler:org.apache.solr.common.SolrException: TransactionLog doesn't know how to serialize class org.bson.types.ObjectId; try implementing ObjectResolver? The

Re: Schema Change for Solr 7.4

2018-08-13 Thread Jan Høydahl
Aliases are like pointers to collections that can be used in-place anywhere you'd use the collection name. See https://lucene.apache.org/solr/guide/7_4/collections-api.html#createalias -- Jan Høydahl, search solution

Graph/Stream requestHandlers in standalone

2018-08-13 Thread David '-1' Schmid
Hello! I'm interested in using the graph traversal streaming expressions. My solr instance is running in standalone (not SolrCloud) mode, so I'm missing the "Stream" interface on the admin pages. The request handler is there (I guess because it's implicit), but no UI. Is the streaming something

Re: Docvalue v.s. invert index

2018-08-13 Thread Zahra Aminolroaya
Thanks Erick, Shawn and Tomoko for complete answers. If I set both docvalue and indexed "true" in a field, will Solr understand to use which technique for faceting or searching? Or Is there any way to inform Solr to use which technique? -- Sent from:

Re: Rich Text Format - Clob

2018-08-13 Thread tfaltinat
Hi Alex, I'm using the ClobTransformer but now I'm getting ClassCastException: java.io.StringReader cannot be cast to java.io.InputStream Maybe just my configuration is not okay. Regards, Torsten -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

create Nested index structure SOLR

2018-08-13 Thread sonaliw
I want to create nested index structure with SOLR import handler. I am using Solr -7.2 ,I have created data-config.xml (https://issues.apache.org/jira/browse/SOLR-5147),

Re: SolrCloud CDCR issue

2018-08-13 Thread cdatta
I am following the workaround mentioned over here related to auth. https://stackoverflow.com/questions/48790621/solr-cdcr-doesnt-work-if-the-authentication-is-enabled. My question is why all documents are not getting forwarded? Is there something else that we are we missing here? Also wondering

Re: Schema Change for Solr 7.4

2018-08-13 Thread THADC
Hi Shawn, thanks for this response. We are probably going to take your suggested approach: 1. Upload a new configset to ZooKeeper. 2. Create a new collection using the new configset. 3. Index data into the new collection. 4. Set up an alias with the original collection name, pointing at the

Help with error on indexing mongoDB document by Solr DataImportHandler

2018-08-13 Thread Wendy2
Hi Solr users:I encountered the following error when indexing MongoDB data by using Solr DataImportHandler:org.apache.solr.common.SolrException: TransactionLog doesn't know how to serialize class org.bson.types.ObjectId; try implementing ObjectResolver?Is there any fix or workaround for this

Re: Docvalue v.s. invert index

2018-08-13 Thread Mikhail Khludnev
https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/schema/FieldType.java#L881 https://github.com/apache/lucene-solr/blob/17eb8cd14d27d2680fe7c4b3871f3eb883542d34/solr/core/src/java/org/apache/solr/search/facet/FacetField.java#L106 On Mon, Aug 13, 2018 at 9:02

Re: SolrCloud CDCR issue

2018-08-13 Thread Amrit Sarkar
To the concerned, I am afraid in informing, Authentication are not supported between Solr clusters: https://issues.apache.org/jira/browse/SOLR-11959. Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269 www.lucidworks.com Twitter http://twitter.com/lucidworks LinkedIn:

about the value of key "hl"(highlight) ,in solr 7.4

2018-08-13 Thread 魏北南
Hello, I thinkthe value of the key "hl"(highlight)is incorrect ,,in solr 7.4; when I do some operations in UI,for example, query some key words and expect high light;and then I do, but I found some strange info from the log info:

SOLR 7.x stable version

2018-08-13 Thread abhi Abhishek
Hi All - I am using SOLR Cloud v6.5.0 and looking to upgrade it to SOLR 7.x; any suggestions which are the most stable version in SOLR 7.x series. from my initial reading, I see until SOLR 7.2 we had issues with CDCR updates. Thank you for your suggestions. Thanks, Abhishek

Re: create Nested index structure SOLR

2018-08-13 Thread Mikhail Khludnev
This is just a flatten internal representation of actually nested docs. On Mon, Aug 13, 2018 at 2:00 PM sonaliw wrote: > I want to create nested index structure with SOLR import handler. I am > using > Solr -7.2 ,I have created data-config.xml >

Re: Highlighting is not working with docValues only String field

2018-08-13 Thread Karthik Ramachandran
I have opened JIRA https://issues.apache.org/jira/browse/SOLR-12663 On Sat, Aug 11, 2018 at 8:59 PM Erick Erickson wrote: > I can see why it wouldn't and also why it could/should. I also wonder about > SortableTextField, perhaps mention that too. > > Seems worth a JIRA to me if there isn't one

Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Kelly Rusk
Hi all, I have imported a Wildcard Certificate to my Java Keystore and it displays, but when I pull up Internet Explorer and browse to my Solr site, it fails to load and presents TLS errors. Has anyone run into this, what commands do you run to import a Public CA into Solr? Regards, Kelly

Re: SolrCloud CDCR issue

2018-08-13 Thread cdatta
And I was thinking about this one: https://issues.apache.org/jira/browse/SOLR-11959. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Calculating maxShardsPerNode

2018-08-13 Thread Greenhorn Techie
Hi, Our cluster is a 20 node with numShards expected to be set to 10 and replication expected to be 4. Wondering what is the best value to set maxShardsPerNode to? Should I consider only numShards while calculating the value i.e. because I have only 10 shards, should I set maxShardsPerNode to 1or

Re: Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Christopher Schultz
Kelly, On 8/13/18 11:55 AM, Kelly Rusk wrote: > I have imported a Wildcard Certificate to my Java Keystore and it > displays, but when I pull up Internet Explorer and browse to my Solr > site, it fails to load and presents TLS errors. What do you mean "it displays"? How did you import your

Re: Calculating maxShardsPerNode

2018-08-13 Thread Erick Erickson
I wouldn't spend a lot of time worrying about this, just set it to a big number ;). Solr won't create that many replicas (and the name is a bit confusing) unless you ask it to. It'll also distribute the replicas across nodes rather than putting them all together, and in the worst case you can

Re: Docvalue v.s. invert index

2018-08-13 Thread Erick Erickson
"My expectation is that scanning Doc Values might be faster than inverted index if a query matches more than %25 of documents." I seriously doubt it. Or my expectations are really off base, which is always possible, I confess I've never measured though. At a high level: indexed: find entry for

Re: UUIDField in defined schema

2018-08-13 Thread Edward Ribeiro
Go to the solrconfig.xml and replace the schemaless mode opening tag of named "add-unknown-fields-to-the-schema" by this one: It will auto-generate the UUID. If you want to use a UUIDField instead of string for the uniqueKey (id) then make the changes below in managed-schema: Edward On

Re: Calculating maxShardsPerNode

2018-08-13 Thread Greenhorn Techie
Thanks Erick! On 13 August 2018 at 17:05:57, Erick Erickson (erickerick...@gmail.com) wrote: I wouldn't spend a lot of time worrying about this, just set it to a big number ;). Solr won't create that many replicas (and the name is a bit confusing) unless you ask it to. It'll also distribute

RE: Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Kelly Rusk
Hi Chris, All I have is the .p12 and password so it has already gone through the CSR process. How do I import this file into the keystore? On the Windows side, does it need to reside in the Personal Store or Trusted Root Store? Kelly -Original Message- From: Christopher Schultz

Re: Add Wildcard Certificate to Java Keystore

2018-08-13 Thread Christopher Schultz
Kelly, On 8/13/18 12:37 PM, Kelly Rusk wrote: > All I have is the .p12 and password so it has already gone through > the CSR process. How do I import this file into the keystore? Java's keytool won't merge keystores. You'll have to export the certificates from the PKCS12 file you got from your