Re: Alias field names when searching (not for results)

2018-03-05 Thread Emir Arnautović
Hi, I did not try it, but the first thing that came to my mind is to use edismax’s ability to define field aliases, something like f.f1.fq=field_1. Note that it is not recommended to have field name starting with number so not sure if it will work with “1”. HTH, Emir -- Monitoring - Log

Re: Atomic updates using solr-php-client

2018-03-05 Thread Sami al Subhi
Thank you for replying, Yes that is the one. Unfortunately there is no documentation for this library. I tried to implement other libraries but I couldn't get them running. This is the easiest library to implement but lacks support and documentation. Thank you and best regards, Sami -- Sent

Re: Atomic updates using solr-php-client

2018-03-05 Thread Shawn Heisey
On 3/5/2018 11:38 PM, Sami al Subhi wrote: I am using solr-php-client to interact with solr. I came this example that shows how to add docs: http://www.ayalon.ch/en/code-samples/solr-php-client-example I checked "service.php" file,

Atomic updates using solr-php-client

2018-03-05 Thread Sami al Subhi
I am using solr-php-client to interact with solr. I came this example that shows how to add docs: http://www.ayalon.ch/en/code-samples/solr-php-client-example I checked "service.php" file, more specifically the function

Re: Rename solr to another name

2018-03-05 Thread Zheng Lin Edwin Yeo
Hi Shawn, Ok, thanks for the info. We will review it. Regards, Edwin On 5 March 2018 at 14:01, Shawn Heisey wrote: > 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

Re: statistics in hitlist

2018-03-05 Thread Joel Bernstein
I suspect you've got nulls in your data. I just tested with null values and got the same error. For testing purposes try loading the data with default values of zero. Joel Bernstein http://joelsolr.blogspot.com/ On Mon, Mar 5, 2018 at 10:12 PM, Joel Bernstein wrote: >

Re: statistics in hitlist

2018-03-05 Thread Joel Bernstein
Let's break the expression down and build it up slowly. Let's start with: let(echo="true", a=random(tx_prod_production, q="*:*", fq="isParent:true", rows="15", fl="oil_first_90_days_production,oil_last_30_days_production"), b=col(a, oil_first_90_days_production)) This should return

Re: Issues with CDCR in Solr 7.1

2018-03-05 Thread Tom Peters
You can ignore this. I think I found the issue (I was missing a block of XML in the source ocnfig). I'm going to monitor it over the next day and see if it was resolved. > On Mar 5, 2018, at 4:29 PM, Tom Peters wrote: > > I'm trying to get Solr CDCR setup in Solr 7.1 and

Re: Solr 7.2.0 CDCR Issue with TLOG collections

2018-03-05 Thread Webster Homer
I noticed that the cdcr action=queues returns different results for the target clouds. One target says that the updateLogSynchronizer is stopped the other says started. Why? What does that mean. We don't explicitly set that anywhere {"responseHeader": {"status": 0,"QTime": 0},"queues":

Issues with CDCR in Solr 7.1

2018-03-05 Thread Tom Peters
I'm trying to get Solr CDCR setup in Solr 7.1 and I'm having issues post-bootstrap. I have about 5,572,933 documents in the source cluster (index size is 3.77 GB). I'm enabling CDCR in the following manner: 1. Delete the existing cluster in the target data center

Re: statistics in hitlist

2018-03-05 Thread John Smith
Thanks Joel for your help on this. What I've done so far: - unzip downloaded solr-7.2 - modify the _default "managed-schema" to add the random field type and the dynamic random field - start solr7 using "solr start -c" - indexed my data using pint/pdouble/boolean field types etc I can now run

Re: Performance Implications of Different Routing Schemes

2018-03-05 Thread Stephen Lewis
Hi! Thank you for your thoughtful response Shawn! I have a couple of follow up questions and points to check my understanding on. Thanks for explaining my misunderstanding on implicit routing. So to repeat back and check my understanding: implicit routing may be either left up to SOLR to

Re: /var/solr/data has lots of index* directories

2018-03-05 Thread Tom Peters
Thanks. I went ahead and did that. I think the multiple directories stemmed from an issue I sent to the list a week or two ago about deleteByQueries knocking my replicas offline. > On Mar 5, 2018, at 1:44 PM, Shalin Shekhar Mangar > wrote: > > You can look inside the

Re: /var/solr/data has lots of index* directories

2018-03-05 Thread Shalin Shekhar Mangar
You can look inside the index.properties. The directory name mentioned in that properties file is the one being used actively. The rest are old directories that should be cleaned up on Solr restart but you can delete them yourself without any issues. On Mon, Mar 5, 2018 at 11:43 PM, Tom Peters

/var/solr/data has lots of index* directories

2018-03-05 Thread Tom Peters
While trying to debug an issue with CDCR, I noticed that the /var/solr/data directories on my source cluster have wildly different sizes. % for i in solr2-{a..e}; do echo -n "$i: "; ssh -A $i du -sh /var/solr/data; done solr2-a: 9.5G /var/solr/data solr2-b: 29G/var/solr/data

Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread Jeff Dyke
I'm not sure where you're documents are coming from but i would find this from a 403/404 in an S3 bucket if the permissions were not correct. But ultimately Walters last sentence is the best next step. On Mon, Mar 5, 2018 at 12:38 PM, Walter Underwood wrote: > I presume

Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread Walter Underwood
I presume this error is from SolrJ. SolrJ has requested responses in javabin format, so it uses that parser. When there is an error, often a 503 (timeout), the body of the HTTP response is in HTML. When that happens, this error results. This was fixed in SolrJ sometime in the 5.x releases. To

Re: Expected mime type application/octet-stream but got text/html

2018-03-05 Thread mustafiz
Hi Dear, I am facing exactly same issue for my dspace 6.1 but can't solving after 3 days working. as i am new on dspace. can you please help me detail how i can get rid from it? details please. Thanks -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Alias field names when searching (not for results)

2018-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'd like for users to be able to search a field by multiple names without performing a "copy-field" when analyzing a document. Is that possible? Whenever I search for "solr alias field" I get results about how to re-name fields in the results.

Re: Updating documents and commit/rollback

2018-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shawn, On 3/2/18 7:46 PM, Shawn Heisey wrote: > On 3/2/2018 10:39 AM, Christopher Schultz wrote: >> The problem is that I'm updating the index after my SQL UPDATE(s) >> have run, but before my SQL COMMIT occurs. I have had a problem >> where the

Re: SolrCloud 7.2.1 - UnsupportedOperationException thrown after query on specific environments

2018-03-05 Thread Andy Jolly
We were able to locate the exact issue after some more digging. We added a query to another collection that runs alongside the job we were executing and we were missing the collection reference in the URL. If the below query is run by itself in at least Solr 7, the error will be reproduced.

Re: Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
Thanks for the reply, Emir. I would like to use server-side Java API to extend the RequestHandlerBase and invoke other requestHandlers and queries. An example of such implementation could be found here: http://sujitpal.blogspot.co.uk/2011/02/solr-custom-search-requesthandler.html However, this

Re: Solr CDCR doesn't work if the authentication is enabled

2018-03-05 Thread Amrit Sarkar
Nice. Can you please post the details on the JIRA too if possible: https://issues.apache.org/jira/browse/SOLR-11959 and we can probably put up a small patch of adding this bit of information in official documentation. Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269 www.lucidworks.com

Re: Solr CDCR doesn't work if the authentication is enabled

2018-03-05 Thread dimaf
To resolve the issue, I added names of Source node to /live_nodes of Target. https://stackoverflow.com/questions/48790621/solr-cdcr-doesnt-work-if-the-authentication-is-enabled -- Sent from:

RE: solr url control

2018-03-05 Thread Becky Bonner
Thank you for your response. Our dev instance is not a cloud but we will be implementing cloud in our staging and production environments. I was afraid you were going to tell me that the substructure was not supported. I was hoping that in the core autodiscovery, it would keep the path.

Solr Cloud: query elevation + deduplication?

2018-03-05 Thread Ronja Koistinen
Hello, I am running Solr Cloud 6.6.2 and trying to get query elevation and deduplication (with SignatureUpdateProcessor) working at the same time. The documentation for deduplication (https://lucene.apache.org/solr/guide/6_6/de-duplication.html) does not specify if the signatureField needs to be

Re: Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Emir Arnautović
Hi Gintautas, I suggest that you start from some existing SearchHandler that does something similar to what you are after or some simple handler. Also check if handler or SearchComponent is better base for your feature. Here is a blog post describing how to write, build and deploy custom Solr

Re: Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
I would like to write a searchHandler for complex cross-collection queries. On Mon, Mar 5, 2018 at 12:05 PM, Gintautas Sulskus < gintautas.suls...@gmail.com> wrote: > Hi, > > How do I access a different collection from a custom searchHandler? > Is there any documentation on custom component

Accessing a specific solr collection from custom searchHandler

2018-03-05 Thread Gintautas Sulskus
Hi, How do I access a different collection from a custom searchHandler? Is there any documentation on custom component (e.g. searchHandler) development? Regards, Gintas

Solr SynonymGraphFilterFactory error on import

2018-03-05 Thread damian.pawski
After upgrading to Solr 7.2 import started to log errors for some documents. Field that returns errors: During the import below error is returned for some of the records: