RE: 6.x to 7.x differences
Hi John, Please check the solrQueryParser option, it was removed in 7.4 version, so you will need to provide AND in solrconfig.xml or give the q.op option while querying to solve this problem. By default solr makes it an "OR" operation leading to too many results. Old Way: In Managed-schema or schema.xml New Way: in solrconfig.xml AND Thanks and Regards, Preeti Bhat -Original Message- From: John Blythe [mailto:johnbly...@gmail.com] Sent: Wednesday, September 12, 2018 8:02 AM To: solr-user@lucene.apache.org Subject: 6.x to 7.x differences hi, all. we recently migrated to cloud. part of that migration jumped us from 6.1 to 7.4. one example query between our old solr instance and our new cloud instance produces 42 results and 19k results. the analyzer is the same aside from WordDelimiterFilterFactory moving over to the graph variation of it and the lucene parser moving from 6.1 to 7.4 obviously. i've used the analysis tool in solr admin to try to determine the difference between the two. i'm seeing the same output between index and query results yet when actually running the queries have that huge divergence of results. i'm left scratching my head at this point. i'm guessing it's from the lucene parser? hoping to get some clarity from you guys! thanks! -- John Blythe NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Using asterik(*) with unicode characters.
Thanks Erick, its working now as expected. Thanks and Regards, Preeti Bhat -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Wednesday, June 28, 2017 9:20 PM To: solr-user Subject: Re: Using asterik(*) with unicode characters. There's a long blog on wildcards here: https://lucidworks.com/2011/11/29/whats-with-lowercasing-wildcard-multiterm-queries-in-solr/ The gist is that when you are analyzing a token, if the analysis chain splits a token into more than one part then wildcards are impossible to get right. So any "MultiTermAware" filter will barf if you ask it to emit more than one token when doing wildcard searches. For filters that are _not_ "MultiTermAware", they're just skipped in the query analysis chain. That leaves the question of why your query chain seems to emit two tokens for MöllerGruppen but not MollerGruppen. I think it's because you have preserveOriginal set to true in the query analysis chain here: So this entry emits both MöllerGruppen and MollerGruppen for the input MöllerGruppen but not for MollerGruppen since MollerGruppen doesn't need any folding. This violates this constraint imposed by ASCIIFoldingFilterFactory being "MultiTermAware", which means if it emits two tokens it barfs. You do not need to set "preserveOriginal='true' " in your _query_ chain since your indexing chain puts both the folded and un-folded versions in the index at the same position. So I think if you set perserveOriginal to false (again, in the _query_ analysis chain, leave it true in the index analysis chain) you'll be OK. Your queries will also be somewhat faster. Best, Erick On Wed, Jun 28, 2017 at 6:25 AM, Preeti Bhat wrote: > Hi All, > > I have a requirement where the user can give an Unicode or ascii character as > input but expects same result. > > For example: MöllerGruppen AS vs MollerGruppen AS should give out same result. > > I am able to get this done using class="solr.ASCIIFoldingFilterFactory" preserveOriginal="true"/>, but due to > some reason when it try to do MöllerGruppen* I am getting the below message. > > ""metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","org.apache.solr.common.SolrException"], > "msg":"analyzer returned too many terms for multiTerm term: > MöllerGruppen", > "code":400}} > " > > It works for MollerGruppen* though. > > Could someone please advise on this. > > Below is the fieldtype of this field. > > > > > > >preserveOriginal="true"/> > >ignoreCase="true"/> >generateWordParts="1" splitOnCaseChange="0" catenateWords="1" > splitOnNumerics="0" stemEnglishPossessive="0" preserveOriginal="1"/> > > > > > >preserveOriginal="true"/> > >ignoreCase="true"/> >generateWordParts="1" splitOnCaseChange="0" catenateWords="1" > splitOnNumerics="0" stemEnglishPossessive="0" preserveOriginal="1"/> > > > > > > Thanks and Regards, > Preeti > > > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or > privileged information. If you are not the intended recipient (or have > received this communication in error) please notify the sender and > it-supp...@shoregrp.com immediately, and destroy this communication. Any > unauthorized copying, disclosure or distribution of the material in this > communication is strictly forbidden. Any views or opinions presented in this > email are solely those of the author and do not necessarily represent those > of the company. Finally, the recipient should check this email and any > attachments for the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Using asterik(*) with unicode characters.
Hi All, I have a requirement where the user can give an Unicode or ascii character as input but expects same result. For example: MöllerGruppen AS vs MollerGruppen AS should give out same result. I am able to get this done using , but due to some reason when it try to do MöllerGruppen* I am getting the below message. ""metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"analyzer returned too many terms for multiTerm term: MöllerGruppen", "code":400}} " It works for MollerGruppen* though. Could someone please advise on this. Below is the fieldtype of this field. Thanks and Regards, Preeti NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Data Changes Logging
Hi All, We got a peculiar requirement from client, not sure whether the SOLR supports it or not. We would like to have alerts in place if we have the changes on the particular column for more than specific threshold on said day. For example: Say, we have column say "Name" on which we have say around 30% changes we would like an alert. I am not sure whether we have some logging mechanism to get this done. Any ideas would be appreciated. Thanks and Regards, Preeti NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: FieldName as case insenstive
Hi All, Did anyone get a chance to look at this? Thanks and Regards, Preeti Bhat From: Preeti Bhat Sent: Friday, March 03, 2017 2:47 PM To: solr-user Subject: FieldName as case insenstive Hi All, I have a field named "CompanyName" in one of my collection. When I try to search CompanyName:xyz or CompanyName:XYZ it gives me results. But when I try companyname:xyz then the result fails. Is there a way to ensure that fieldname in solr is case insensitive as the client is going to pass the search string along with the fieldname for us. Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
FieldName as case insenstive
Hi All, I have a field named "CompanyName" in one of my collection. When I try to search CompanyName:xyz or CompanyName:XYZ it gives me results. But when I try companyname:xyz then the result fails. Is there a way to ensure that fieldname in solr is case insensitive as the client is going to pass the search string along with the fieldname for us. Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Joining across collections with Nested documents
Thanks Mikhail, I will look into this option. Thanks and Regards, Preeti Bhat -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Friday, March 03, 2017 1:03 PM To: solr-user Subject: Re: Joining across collections with Nested documents Related docs can be retrieved with https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents#TransformingResultDocuments-[subquery] but searching related docs is less ready. Here is a patch for query time join across collections https://issues.apache.org/jira/browse/SOLR-8297. On Fri, Mar 3, 2017 at 8:55 AM, Preeti Bhat wrote: > Hi All, > > I have two collections in solrcloud namely contact and company, they > are in same solr instance. Company is relatively simpler document with > id, Name, address etc... Coming over to Contact, this has the nested > document like below. I would like to get the Company details using the > "CompanyId" > field in child document by joining this to the "Company" > collections's id document. Is this possible? Could someone please guide me on > this? > > { > id: "1" > , FirstName: "ABC" > , LastName: "BCD" > . > . > . > _childDocuments_:{ > { > id:"123-1", > CompanyId: "123", > Email: "abc@smd.edu" > } > { > id:"124-1", > CompanyId: "124", > Email: "abc@smd.edu" > > } > } > > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > > > -- Sincerely yours Mikhail Khludnev NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Joining across collections with Nested documents
We can't, they are being used for different purposes and we have few cases where we would need data from both. Thanks and Regards, Preeti Bhat -Original Message- From: Walter Underwood [mailto:wun...@wunderwood.org] Sent: Friday, March 03, 2017 12:02 PM To: solr-user@lucene.apache.org Subject: Re: Joining across collections with Nested documents Make one collection with denormalized data. This looks like a relational, multi-table schema in Solr. That will be slow and painful. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Mar 2, 2017, at 9:55 PM, Preeti Bhat wrote: > > Hi All, > > I have two collections in solrcloud namely contact and company, they are in > same solr instance. Company is relatively simpler document with id, Name, > address etc... Coming over to Contact, this has the nested document like > below. I would like to get the Company details using the "CompanyId" field in > child document by joining this to the "Company" collections's id document. > Is this possible? Could someone please guide me on this? > > { > id: "1" > , FirstName: "ABC" > , LastName: "BCD" > . > . > . > _childDocuments_:{ > { > id:"123-1", > CompanyId: "123", > Email: "abc@smd.edu" > } > { > id:"124-1", > CompanyId: "124", > Email: "abc@smd.edu" > > } > } > > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or > privileged information. If you are not the intended recipient (or have > received this communication in error) please notify the sender and > it-supp...@shoregrp.com immediately, and destroy this communication. Any > unauthorized copying, disclosure or distribution of the material in this > communication is strictly forbidden. Any views or opinions presented in this > email are solely those of the author and do not necessarily represent those > of the company. Finally, the recipient should check this email and any > attachments for the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Joining across collections with Nested documents
Hi All, I have two collections in solrcloud namely contact and company, they are in same solr instance. Company is relatively simpler document with id, Name, address etc... Coming over to Contact, this has the nested document like below. I would like to get the Company details using the "CompanyId" field in child document by joining this to the "Company" collections's id document. Is this possible? Could someone please guide me on this? { id: "1" , FirstName: "ABC" , LastName: "BCD" . . . _childDocuments_:{ { id:"123-1", CompanyId: "123", Email: "abc@smd.edu" } { id:"124-1", CompanyId: "124", Email: "abc@smd.edu" } } Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Return specific field from child documents.
Same result. Thanks, Preeti -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Tuesday, January 31, 2017 3:15 PM To: solr-user Subject: Re: Return specific field from child documents. ok. what about emp.q={!child of=content_type:parent}{!terms f=id v=$row.id} On Tue, Jan 31, 2017 at 11:22 AM, Preeti Bhat wrote: > Hi Mikhail, > > Thanks for reply, but It doesn't seem to work. > > http://localhost:8984/solr/Contact/select?fl=id, > FirstName,emp:[subquery]&emp.rows=10&emp.fl=email&emp.q={! > child%20of=content_type:parent}{!term%20f=contact_id% > 20v=$row.id}&indent=on&q={!parent%20which=%22content_ > type:parent%22}%20email:%22tempe...@tempest.com%22&wt= > json&expandMacros=true > > I am getting the below response. > > { > "responseHeader":{ > "zkConnected":true, > "status":0, > "QTime":0, > "params":{ > "emp.fl":"email", > "q":"{!parent which=\"content_type:parent\"} email:\" > tempe...@tempest.com\"", > "emp.rows":"10", > "indent":"on", > "expandMacros":"true", > "fl":"id,FirstName,emp:[subquery]", > "emp.q":"{!child of=content_type:parent}{!term f=contact_id v=$ > row.id}", > "wt":"json"}}, > "response":{"numFound":1,"start":0,"docs":[ > { > "id":"7888", > "FirstName":"temptest"}] > }} > > Thanks and Regards, > Preeti Bhat > > -Original Message- > From: Mikhail Khludnev [mailto:m...@apache.org] > Sent: Tuesday, January 31, 2017 1:34 PM > To: solr-user > Subject: Re: Return specific field from child documents. > > it should be something like > emp.q={!child of=content_type:parent}{!terms f=contact_id v=$row.id} > > On Tue, Jan 31, 2017 at 10:30 AM, Preeti Bhat > > wrote: > > > Hi Mikhail, > > > > I was trying to restrict the data from child documents due to one of > > the request of the client where they would need the specific fields > > as > output. > > The below query gives me the firstName and Last Name as expected but > > not the email which is part of the child document. > > http://localhost:8984/solr/Contact/select?fl=FirstName, > > LastName,email,%20[child%20parentFilter=content_type: > > parent%20]&indent=on&q={!parent%20which=%22content_ > > type:parent%22}%20email:%22tempe...@tempest.com%22&wt=json > > > > I did try the sub query, but its returning only the parent document. > > Not sure if I am missing something here. > > > > http://localhost:8984/solr/Contact/select??fl=id, > > FirstName,email,emp:[subquery]&emp.rows=10&emp.fl=email&emp. > > q={!term%20f=contact_id%20v=$row.id}&indent=on&q=%7b! > > parent%20which=%22content_type:parent%22%7d%20email:% > > 22tempe...@tempest.com%22&wt=json&expandMacros=true > > > > I am expecting the result to be something like this. Could you > > please advise. > > { > > "FirstName":"temptest", > > "LastName":"temper", > > "_childDocuments_":[ > > { "email":["tempe...@tempest.com"] > > }, > > {"email":["temper.tt...@tempt.com"] > > } > > ] > > } > > > > Thanks and Regards, > > Preeti Bhat > > > > -Original Message- > > From: Mikhail Khludnev [mailto:m...@apache.org] > > Sent: Monday, January 30, 2017 5:49 PM > > To: solr-user > > Subject: Re: Return specific field from child documents. > > > > Hello, > > > > You hardly get any gain limiting child field output. You can do that > > with [subquery] result transformer. > > > > On Mon, Jan 30, 2017 at 11:09 AM, Preeti Bhat > > > > wrote: > > > > > Hi All, > > > > > > I am trying out the nested documents concept for SOLR. I am able > > > to show the specific field for the parent document like > > > "FirstName","LastName" but I am not able to show the specific > > > field in > > fl for child. > > > > > > I would like to retrieve the email from the _childDocuments. Could > > > someone please advise. > > > > > > Q=+FirstName:"etr4tr" {!parent which="content_type:parent"} > > > Fl=Fir
RE: Return specific field from child documents.
Hi Mikhail, Thanks for reply, but It doesn't seem to work. http://localhost:8984/solr/Contact/select?fl=id,FirstName,emp:[subquery]&emp.rows=10&emp.fl=email&emp.q={!child%20of=content_type:parent}{!term%20f=contact_id%20v=$row.id}&indent=on&q={!parent%20which=%22content_type:parent%22}%20email:%22tempe...@tempest.com%22&wt=json&expandMacros=true I am getting the below response. { "responseHeader":{ "zkConnected":true, "status":0, "QTime":0, "params":{ "emp.fl":"email", "q":"{!parent which=\"content_type:parent\"} email:\"tempe...@tempest.com\"", "emp.rows":"10", "indent":"on", "expandMacros":"true", "fl":"id,FirstName,emp:[subquery]", "emp.q":"{!child of=content_type:parent}{!term f=contact_id v=$row.id}", "wt":"json"}}, "response":{"numFound":1,"start":0,"docs":[ { "id":"7888", "FirstName":"temptest"}] }} Thanks and Regards, Preeti Bhat -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Tuesday, January 31, 2017 1:34 PM To: solr-user Subject: Re: Return specific field from child documents. it should be something like emp.q={!child of=content_type:parent}{!terms f=contact_id v=$row.id} On Tue, Jan 31, 2017 at 10:30 AM, Preeti Bhat wrote: > Hi Mikhail, > > I was trying to restrict the data from child documents due to one of > the request of the client where they would need the specific fields as output. > The below query gives me the firstName and Last Name as expected but > not the email which is part of the child document. > http://localhost:8984/solr/Contact/select?fl=FirstName, > LastName,email,%20[child%20parentFilter=content_type: > parent%20]&indent=on&q={!parent%20which=%22content_ > type:parent%22}%20email:%22tempe...@tempest.com%22&wt=json > > I did try the sub query, but its returning only the parent document. > Not sure if I am missing something here. > > http://localhost:8984/solr/Contact/select??fl=id, > FirstName,email,emp:[subquery]&emp.rows=10&emp.fl=email&emp. > q={!term%20f=contact_id%20v=$row.id}&indent=on&q=%7b! > parent%20which=%22content_type:parent%22%7d%20email:% > 22tempe...@tempest.com%22&wt=json&expandMacros=true > > I am expecting the result to be something like this. Could you please > advise. > { > "FirstName":"temptest", > "LastName":"temper", > "_childDocuments_":[ > { "email":["tempe...@tempest.com"] > }, > {"email":["temper.tt...@tempt.com"] > } > ] > } > > Thanks and Regards, > Preeti Bhat > > -Original Message- > From: Mikhail Khludnev [mailto:m...@apache.org] > Sent: Monday, January 30, 2017 5:49 PM > To: solr-user > Subject: Re: Return specific field from child documents. > > Hello, > > You hardly get any gain limiting child field output. You can do that > with [subquery] result transformer. > > On Mon, Jan 30, 2017 at 11:09 AM, Preeti Bhat > > wrote: > > > Hi All, > > > > I am trying out the nested documents concept for SOLR. I am able to > > show the specific field for the parent document like > > "FirstName","LastName" but I am not able to show the specific field > > in > fl for child. > > > > I would like to retrieve the email from the _childDocuments. Could > > someone please advise. > > > > Q=+FirstName:"etr4tr" {!parent which="content_type:parent"} > > Fl=FirstName,LastName,email, [child parentFilter=content_type:parent > > ] > > > > "response":{"numFound":1,"start":0,"docs":[ > > { > > "FirstName":"etr4tr", > > "LastName":"wrer6t", > > "_childDocuments_":[ > > { > > "id":"3556|12", > > "company_id":["12"], > > "email":["ehrijw.e...@b.com"], > > "isPrimary":["true"]}, > > { > > "id":"3556|45", > > "company_id":["45"], > > "email":["ehrijw.eer54...@ccc.com"]}]}] > > }} > > > > > > Thanks and Regards, > > Pree
RE: Return specific field from child documents.
Hi Mikhail, I was trying to restrict the data from child documents due to one of the request of the client where they would need the specific fields as output. The below query gives me the firstName and Last Name as expected but not the email which is part of the child document. http://localhost:8984/solr/Contact/select?fl=FirstName,LastName,email,%20[child%20parentFilter=content_type:parent%20]&indent=on&q={!parent%20which=%22content_type:parent%22}%20email:%22tempe...@tempest.com%22&wt=json I did try the sub query, but its returning only the parent document. Not sure if I am missing something here. http://localhost:8984/solr/Contact/select??fl=id,FirstName,email,emp:[subquery]&emp.rows=10&emp.fl=email&emp.q={!term%20f=contact_id%20v=$row.id}&indent=on&q=%7b!parent%20which=%22content_type:parent%22%7d%20email:%22tempe...@tempest.com%22&wt=json&expandMacros=true I am expecting the result to be something like this. Could you please advise. { "FirstName":"temptest", "LastName":"temper", "_childDocuments_":[ { "email":["tempe...@tempest.com"] }, {"email":["temper.tt...@tempt.com"] } ] } Thanks and Regards, Preeti Bhat -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Monday, January 30, 2017 5:49 PM To: solr-user Subject: Re: Return specific field from child documents. Hello, You hardly get any gain limiting child field output. You can do that with [subquery] result transformer. On Mon, Jan 30, 2017 at 11:09 AM, Preeti Bhat wrote: > Hi All, > > I am trying out the nested documents concept for SOLR. I am able to > show the specific field for the parent document like > "FirstName","LastName" but I am not able to show the specific field in fl for > child. > > I would like to retrieve the email from the _childDocuments. Could > someone please advise. > > Q=+FirstName:"etr4tr" {!parent which="content_type:parent"} > Fl=FirstName,LastName,email, [child parentFilter=content_type:parent ] > > "response":{"numFound":1,"start":0,"docs":[ > { > "FirstName":"etr4tr", > "LastName":"wrer6t", > "_childDocuments_":[ > { > "id":"3556|12", > "company_id":["12"], > "email":["ehrijw.e...@b.com"], > "isPrimary":["true"]}, > { > "id":"3556|45", > "company_id":["45"], > "email":["ehrijw.eer54...@ccc.com"]}]}] > }} > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > > > -- Sincerely yours Mikhail Khludnev NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Return specific field from child documents.
Hi All, I am trying out the nested documents concept for SOLR. I am able to show the specific field for the parent document like "FirstName","LastName" but I am not able to show the specific field in fl for child. I would like to retrieve the email from the _childDocuments. Could someone please advise. Q=+FirstName:"etr4tr" {!parent which="content_type:parent"} Fl=FirstName,LastName,email, [child parentFilter=content_type:parent ] "response":{"numFound":1,"start":0,"docs":[ { "FirstName":"etr4tr", "LastName":"wrer6t", "_childDocuments_":[ { "id":"3556|12", "company_id":["12"], "email":["ehrijw.e...@b.com"], "isPrimary":["true"]}, { "id":"3556|45", "company_id":["45"], "email":["ehrijw.eer54...@ccc.com"]}]}] }} Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Using nested subdocuments in SOLR
HI Alexandre, I have below questions. 1) need to tag your parent/child documents with document type-> What do we mean by this? Should this be done in the schema.xml /managed-schema. 2) When we say individual id's what do we mean? I am asking this because, I might have the child ids and parent ids as same. For example, the Company Link Id could be 1 and so could be id=1 Thanks and Regards, Preeti Bhat -Original Message- From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] Sent: Monday, October 24, 2016 6:06 PM To: solr-user Subject: Re: Using nested subdocuments in SOLR (tl;dr) Yes Solr supports nested documents, with the company link instances becoming children records/documents. However, they are stored separately, so the parent and child documents would be searched and return separately unless you use appropriate queries, document transformers, etc. You'd also need to tag your parent/child documents with document type (obviously, CompanyLink for child documents here) and assign individual IDs. SolrJ supports nested documents too. Regards, Alex. Solr Example reading group is starting November 2016, join us at http://j.mp/SolrERG Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 24 October 2016 at 05:46, Preeti Bhat wrote: > HI All, > > I have a requirement which needs the documents to be stored in the below > format. Could someone please advise on whether this is possible in SOLR? > > { > Id:1 > Name:"ABC" > CompanyLink:[ {CompanyId:2, email:abc@dba.com} , {CompanyId:4, > email:abc@dbcc.com} > ] > } > > Is this achievable through SOLRJ? Also, is there any expected impact on > performance of the search or index due to storage in this format? > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or > privileged information. If you are not the intended recipient (or have > received this communication in error) please notify the sender and > it-supp...@shoregrp.com immediately, and destroy this communication. Any > unauthorized copying, disclosure or distribution of the material in this > communication is strictly forbidden. Any views or opinions presented in this > email are solely those of the author and do not necessarily represent those > of the company. Finally, the recipient should check this email and any > attachments for the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Can we query across collections in SOLR?
Thanks every one for the insights, I am able to get some ideas from the links. Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com -Original Message- From: Dennis Gove [mailto:dpg...@gmail.com] Sent: Sunday, October 23, 2016 10:06 AM To: solr-user@lucene.apache.org Subject: Re: Can we query across collections in SOLR? Take a look at Streaming Expressions in Solr 6.x - https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61330338. This supports cross-collection joining. - Denns On Fri, Oct 21, 2016 at 7:42 AM, Preeti Bhat wrote: > Hi All, > > > > I have an requirement where in SQL we have two different sets of data > like Company and Contact in SQL. > > We are planning to get this to SOLR, I wanted to know whether we can > have two separate collections in SOLR and say have a link between them > with say id of one collection or if there any better way to get this > done. Can we query this data directly? > > > > I am searching by say below fields. > > > > ? Company ID -> Get all the contacts linked to this? > > > > ? Contact ID-> Get all details of the company linked to this contact > along with contact details. > > > > Could someone suggest if there is any expected impact on performance > while indexing or searching? > > > > Thanks and Regards, > > Preeti Bhat > > > > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > > > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Using nested subdocuments in SOLR
HI All, I have a requirement which needs the documents to be stored in the below format. Could someone please advise on whether this is possible in SOLR? { Id:1 Name:"ABC" CompanyLink:[ {CompanyId:2, email:abc@dba.com} , {CompanyId:4, email:abc@dbcc.com} ] } Is this achievable through SOLRJ? Also, is there any expected impact on performance of the search or index due to storage in this format? Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Can we query across collections in SOLR?
Hi All, I have an requirement where in SQL we have two different sets of data like Company and Contact in SQL. We are planning to get this to SOLR, I wanted to know whether we can have two separate collections in SOLR and say have a link between them with say id of one collection or if there any better way to get this done. Can we query this data directly? I am searching by say below fields. ? Company ID -> Get all the contacts linked to this? ? Contact ID-> Get all details of the company linked to this contact along with contact details. Could someone suggest if there is any expected impact on performance while indexing or searching? Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Recall: Can we query across collections in SOLR?
Preeti Bhat would like to recall the message, "Can we query across collections in SOLR?". NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Can we query across collections in SOLR?
Hi All, I have an requirement where in SQL we have two different sets of data like Company and Contact in SQL. We are planning to get this to SOLR, I wanted to know whether we can have two separate collections in SOLR and say have a link between them with say id of one collection or if there any better way to get this done. Can we query this data directly? I am searching by say below fields. ? Company ID -> Get all the contacts linked to this? ? Contact ID-> Get all details of the company linked to this contact along with contact details. Could someone suggest if there is any expected impact on performance while indexing or searching? Thanks and Regards, Preeti Bhat Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com<http://www.shoregroupassociates.com/> NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Can we query across collections in SOLR?
Hi All, I have an requirement where in SQL we have two different sets of data like Company and Contact in SQL. We are planning to get this to SOLR, I wanted to know whether we can have two separate collections in SOLR and say have a link between them with say id of one collection or if there any better way to get this done. Can we query this data directly? I am searching by say below fields. ? Company ID -> Get all the contacts linked to this? ? Contact ID-> Get all details of the company linked to this contact along with contact details. Could someone suggest if there is any expected impact on performance while indexing or searching? Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Connect to SolrCloud using proxy in SolrJ
Hi Vincenzo, We are verified that the zookeeper is not working on http already. We are getting the error message stating that there is no response from server for both proxy and non proxy enabled browsers. I have setup the Zookeeper in AWS, SOLR is connecting to Zookeeper using zkCli.sh from SOLR. I have not made any changes in the zookeeper settings other than specifying the data directory and servers names in quorum. Also, I tried applying the SOCKS proxy in my application and got the error stating "Malformed reply from SOCKS server". I am currently working with Network team to see if we have separate Socks proxy settings. Thanks and Regards, Preeti Bhat -Original Message- From: Vincenzo D'Amore [mailto:v.dam...@gmail.com] Sent: Thursday, September 29, 2016 5:02 PM To: solr-user@lucene.apache.org Subject: Re: Connect to SolrCloud using proxy in SolrJ Well, looking around I found at this issue https://issues.apache.org/jira/browse/ZOOKEEPER-2250 As far as I know zookeeper doesn't support socks proxy (may be better ask in the zookeeper forum). Anyway in your email you wrote that zookeeper is "whitelisted in the proxy under TCP protocol", so I suppose your proxy is able to transparently bridge tcp connections. Given that make sure your proxy configuration for zookeeper is not working on http. Just to understand, how have you configured your zookeeper connection? On Thu, Sep 29, 2016 at 11:06 AM, Mikhail Khludnev wrote: > Zookeeper clients connect on tcp not http. Perhaps SOCKS proxy might > help, but I don't know exactly. > > On Thu, Sep 29, 2016 at 11:55 AM, Preeti Bhat > > wrote: > > > Hi Vincenzo, > > > > Yes, I have tried using the https protocol. We are not able to > > connect > to > > Zookeeper's. > > > > I am getting the below error message. > > > > Could not connect to ZooKeeper zkHost within 1 ms > > > > Thanks and Regards, > > Preeti Bhat > > > > -Original Message- > > From: Vincenzo D'Amore [mailto:v.dam...@gmail.com] > > Sent: Thursday, September 29, 2016 1:57 PM > > To: solr-user@lucene.apache.org > > Subject: Re: Connect to SolrCloud using proxy in SolrJ > > > > Hi, > > > > not sure, have you tried to add proxy configuration for https ? > > > > System.setProperty("https.proxyHost", ProxyHost); > > System.setProperty("https.proxyPort", ProxyPort); > > > > > > Bests, > > Vincenzo > > > > On Thu, Sep 29, 2016 at 10:12 AM, Preeti Bhat > > > > wrote: > > > > > HI All, > > > > > > Pinging this again. Could someone please advise. > > > > > > > > > Thanks and Regards, > > > Preeti Bhat > > > > > > From: Preeti Bhat > > > Sent: Wednesday, September 28, 2016 7:14 PM > > > To: solr-user@lucene.apache.org > > > Subject: Connect to SolrCloud using proxy in SolrJ > > > > > > Hi All, > > > > > > I am trying to connect to the Solrcloud using the zookeeper host > > > string in my java application(CloudSolrClient). I am able to > > > connect to the solrcloud when there are no proxy settings needed, > > > but when trying to connect to the code using proxy settings, I am > > > getting the > > below error. > > > > > > > > > 1) Without Proxy > > > > > > System.setProperty("javax.net.ssl.keyStore", keyStore); > > > > > > System.setProperty("javax.net.ssl.keyStorePassword", > > > keyStorePsswd); > > > > > > System.setProperty("javax.net.ssl.trustStore", trustStore); > > > > > > System.setProperty("javax.net.ssl.trustStorePassword", > > > trustStorePsswd); > > > > > > > > > HttpClientBuilder builder = HttpClientBuilder.create(); > > >builder.useSystemProperties(); > > >CloseableHttpClient httpclient = builder.build(); > > > cloud_client = new CloudSolrClient(zkHost, httpclient); > > > @SuppressWarnings("rawtypes") > > > SolrRequest req = new QueryRequest(); > > > req.setBasicAuthCredentials(UserName, Password); > > >cloud_client.request(req, collectionName); > > > > > > cloud_client.setDefaultCollection(collectionName); > > > > > > 2) With Proxy code > > > > > > System.setProperty("javax.net.ssl.keyStore", keyStore); > > > > > > System.setProperty("javax.net.ssl.keyStorePassword", > > > keyStorePsswd); > > &g
RE: Connect to SolrCloud using proxy in SolrJ
Hi Vincenzo, Yes, I have tried using the https protocol. We are not able to connect to Zookeeper's. I am getting the below error message. Could not connect to ZooKeeper zkHost within 1 ms Thanks and Regards, Preeti Bhat -Original Message- From: Vincenzo D'Amore [mailto:v.dam...@gmail.com] Sent: Thursday, September 29, 2016 1:57 PM To: solr-user@lucene.apache.org Subject: Re: Connect to SolrCloud using proxy in SolrJ Hi, not sure, have you tried to add proxy configuration for https ? System.setProperty("https.proxyHost", ProxyHost); System.setProperty("https.proxyPort", ProxyPort); Bests, Vincenzo On Thu, Sep 29, 2016 at 10:12 AM, Preeti Bhat wrote: > HI All, > > Pinging this again. Could someone please advise. > > > Thanks and Regards, > Preeti Bhat > > From: Preeti Bhat > Sent: Wednesday, September 28, 2016 7:14 PM > To: solr-user@lucene.apache.org > Subject: Connect to SolrCloud using proxy in SolrJ > > Hi All, > > I am trying to connect to the Solrcloud using the zookeeper host > string in my java application(CloudSolrClient). I am able to connect > to the solrcloud when there are no proxy settings needed, but when > trying to connect to the code using proxy settings, I am getting the below > error. > > > 1) Without Proxy > > System.setProperty("javax.net.ssl.keyStore", keyStore); > > System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); > > System.setProperty("javax.net.ssl.trustStore", trustStore); > > System.setProperty("javax.net.ssl.trustStorePassword", > trustStorePsswd); > > > HttpClientBuilder builder = HttpClientBuilder.create(); >builder.useSystemProperties(); >CloseableHttpClient httpclient = builder.build(); cloud_client > = new CloudSolrClient(zkHost, httpclient); > @SuppressWarnings("rawtypes") > SolrRequest req = new QueryRequest(); > req.setBasicAuthCredentials(UserName, Password); >cloud_client.request(req, collectionName); > > cloud_client.setDefaultCollection(collectionName); > > 2) With Proxy code > > System.setProperty("javax.net.ssl.keyStore", keyStore); > > System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); > > System.setProperty("javax.net.ssl.trustStore", trustStore); > > System.setProperty("javax.net.ssl.trustStorePassword", > trustStorePsswd); System.setProperty("http.proxyHost", ProxyHost); > System.setProperty("http.proxyPort", ProxyPort); HttpHost proxy = new > HttpHost(ProxyHost, Integer.parseInt(ProxyPort)); RequestConfig > defaultRequestConfig = RequestConfig.custom() > .setProxy(new > HttpHost(ProxyHost, Integer.parseInt(ProxyPort))).build(); > > HttpGet httpget = new HttpGet(); > httpget.setConfig(defaultRequestConfig); > > HttpClientBuilder builder = HttpClientBuilder.create(); > builder.useSystemProperties(); CloseableHttpClient httpclient = > builder.build(); httpclient.execute(proxy, httpget); cloud_client = > new CloudSolrClient(zkHost, httpclient); > @SuppressWarnings("rawtypes") > SolrRequest req = new QueryRequest(); > req.setBasicAuthCredentials(UserName, Password); > cloud_client.request(req, collectionName); > cloud_client.setDefaultCollection(collectionName); > > > Please note that the Zookeepers are already whitelisted in the proxy > under TCP protocol & SOLR servers are under https protocol. > Could someone please advise on this?? > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > > > -- Vincenzo D'Amore email: v.dam...@gmail.com skype: free.dev mobile: +39 349 8513251 NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Connect to SolrCloud using proxy in SolrJ
HI All, Pinging this again. Could someone please advise. Thanks and Regards, Preeti Bhat From: Preeti Bhat Sent: Wednesday, September 28, 2016 7:14 PM To: solr-user@lucene.apache.org Subject: Connect to SolrCloud using proxy in SolrJ Hi All, I am trying to connect to the Solrcloud using the zookeeper host string in my java application(CloudSolrClient). I am able to connect to the solrcloud when there are no proxy settings needed, but when trying to connect to the code using proxy settings, I am getting the below error. 1) Without Proxy System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword", trustStorePsswd); HttpClientBuilder builder = HttpClientBuilder.create(); builder.useSystemProperties(); CloseableHttpClient httpclient = builder.build(); cloud_client = new CloudSolrClient(zkHost, httpclient); @SuppressWarnings("rawtypes") SolrRequest req = new QueryRequest(); req.setBasicAuthCredentials(UserName, Password); cloud_client.request(req, collectionName); cloud_client.setDefaultCollection(collectionName); 2) With Proxy code System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword", trustStorePsswd); System.setProperty("http.proxyHost", ProxyHost); System.setProperty("http.proxyPort", ProxyPort); HttpHost proxy = new HttpHost(ProxyHost, Integer.parseInt(ProxyPort)); RequestConfig defaultRequestConfig = RequestConfig.custom() .setProxy(new HttpHost(ProxyHost, Integer.parseInt(ProxyPort))).build(); HttpGet httpget = new HttpGet(); httpget.setConfig(defaultRequestConfig); HttpClientBuilder builder = HttpClientBuilder.create(); builder.useSystemProperties(); CloseableHttpClient httpclient = builder.build(); httpclient.execute(proxy, httpget); cloud_client = new CloudSolrClient(zkHost, httpclient); @SuppressWarnings("rawtypes") SolrRequest req = new QueryRequest(); req.setBasicAuthCredentials(UserName, Password); cloud_client.request(req, collectionName); cloud_client.setDefaultCollection(collectionName); Please note that the Zookeepers are already whitelisted in the proxy under TCP protocol & SOLR servers are under https protocol. Could someone please advise on this?? Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Connect to SolrCloud using proxy in SolrJ
Hi All, I am trying to connect to the Solrcloud using the zookeeper host string in my java application(CloudSolrClient). I am able to connect to the solrcloud when there are no proxy settings needed, but when trying to connect to the code using proxy settings, I am getting the below error. 1) Without Proxy System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword", trustStorePsswd); HttpClientBuilder builder = HttpClientBuilder.create(); builder.useSystemProperties(); CloseableHttpClient httpclient = builder.build(); cloud_client = new CloudSolrClient(zkHost, httpclient); @SuppressWarnings("rawtypes") SolrRequest req = new QueryRequest(); req.setBasicAuthCredentials(UserName, Password); cloud_client.request(req, collectionName); cloud_client.setDefaultCollection(collectionName); 2) With Proxy code System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStorePassword", keyStorePsswd); System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword", trustStorePsswd); System.setProperty("http.proxyHost", ProxyHost); System.setProperty("http.proxyPort", ProxyPort); HttpHost proxy = new HttpHost(ProxyHost, Integer.parseInt(ProxyPort)); RequestConfig defaultRequestConfig = RequestConfig.custom() .setProxy(new HttpHost(ProxyHost, Integer.parseInt(ProxyPort))).build(); HttpGet httpget = new HttpGet(); httpget.setConfig(defaultRequestConfig); HttpClientBuilder builder = HttpClientBuilder.create(); builder.useSystemProperties(); CloseableHttpClient httpclient = builder.build(); httpclient.execute(proxy, httpget); cloud_client = new CloudSolrClient(zkHost, httpclient); @SuppressWarnings("rawtypes") SolrRequest req = new QueryRequest(); req.setBasicAuthCredentials(UserName, Password); cloud_client.request(req, collectionName); cloud_client.setDefaultCollection(collectionName); Please note that the Zookeepers are already whitelisted in the proxy under TCP protocol & SOLR servers are under https protocol. Could someone please advise on this?? Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: SolrCloud setup
HI, For starters, the below blog looks good for Windows installation. http://blog.thedigitalgroup.com/susheelk/2015/08/03/solrcloud-2-nodes-solr-1-node-zk-setup/ Thanks and Regards, Preeti -Original Message- From: John Bickerstaff [mailto:j...@johnbickerstaff.com] Sent: Thursday, September 22, 2016 9:19 AM To: solr-user@lucene.apache.org Subject: Re: SolrCloud setup I found it to be way less than intuitive when I first started to get going. I wished for an example or step by step (including zookeeper) Pulling it all together from the docs wasn't straightforward although I guess the info is still there. I'll send you my rough notes in case they're helpful... On Wed, Sep 21, 2016 at 9:30 PM, Erick Erickson wrote: > Setting up SolrCloud on multiple hosts is exactly the same as a single > host. You just install Solr on all the hosts you care about and start > it up. As long as the hosts can talk to each other via HTTP, it's all > magic. > > The "glue" is Zookeeper. All the Solrs are started up with the same ZK > ensemble string. So when you start Solr on host1 it registers itself > with ZK. When you start another Solr on host2 it does the same. But > then ZK sends a message to host1 informing it "there's another Solr > out there" and now the Solr on host1 knows the url of Solr on host2 > (and vice versa). > > For just getting started, you can just use a single Zookeeper but for > prod situations you'll want 3 or more. > > Best, > Erick > > On Wed, Sep 21, 2016 at 6:10 PM, S L wrote: > > Can someone point me to a tutorial or blog to setup SolrCloud on > > multiple hosts? LucidWorks just have a trivial single host example. > > I searched around but only found some blogs for older versions (2014 or > > earlier). > > > > thanks. > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Solrcloud with rest api
Hi Jon, Thanks for quick reply. I have below questions: 1) zookeeper acts as load balancer right? 2)Do we need to setup separate load balancer to access the zookeeper for .net? Thanks, Preeti Sent from my Windows Phone From: Jon Hawkesworth<mailto:jon.hawkeswo...@medquist.onmicrosoft.com> Sent: 21-09-2016 18:58 To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> Subject: RE: Solrcloud with rest api Things may have changed but a couple of months ago when my colleague was working on something similar he reported that SolrNet was not able to talk to solrCloud via zookeeper, so we had to set up a load balancer so that our SolrNet client applications could send updates to our solrCloud cluster. Hope this helps, Jon -Original Message- From: Preeti Bhat [mailto:preeti.b...@shoregrp.com] Sent: Wednesday, September 21, 2016 2:12 PM To: solr-user@lucene.apache.org Subject: Solrcloud with rest api Hi All, We are trying to access the solrcloud using rest API in .net. But we are not sure how to access the zookeeper setup here. Could someone please guide us Thanks, Preeti Sent from my Windows Phone NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Solrcloud with rest api
Hi All, We are trying to access the solrcloud using rest API in .net. But we are not sure how to access the zookeeper setup here. Could someone please guide us Thanks, Preeti Sent from my Windows Phone NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Unable to connect to correct port in solr 6.2.0
Thanks Shekhar, Re install was successful. I had run on default port prior to running on 2016. T Thanks and Regards, Preeti Bhat -Original Message- From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] Sent: Tuesday, September 13, 2016 1:01 AM To: solr-user@lucene.apache.org Subject: Re: Unable to connect to correct port in solr 6.2.0 I just tried this out on ubuntu (sorry I don't have access to a red hat system) and it works fine. One thing that you have to take care of is that if you install the service on the default 8983 port then, trying to upgrade with the same tar to a different port does not work. So please ensure that you hadn't already installed the service before already. On Tue, Sep 13, 2016 at 12:53 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > Which version of red hat? Is lsof installed on this system? > > On Mon, Sep 12, 2016 at 4:30 PM, Preeti Bhat > > wrote: > >> HI All, >> >> I am trying to setup the solr in Redhat Linux, using the >> install_solr_service.sh script of solr.6.2.0 tgz. The script runs >> and starts the solr on port 8983 even when the port is specifically >> specified as 2016. >> >> /root/install_solr_service.sh solr-6.2.0.tgz -i /opt -d /var/solr -u >> root -s solr -p 2016 >> >> Is this correct way to setup solr in linux? Also, I have observed >> that if I go to the /bin/solr and start with the port number its >> working as expected but not as service. >> >> I would like to setup the SOLR in SOLRCloud mode with external zookeepers. >> >> Could someone please advise on this? >> >> >> >> NOTICE TO RECIPIENTS: This communication may contain confidential >> and/or privileged information. If you are not the intended recipient >> (or have received this communication in error) please notify the >> sender and it-supp...@shoregrp.com immediately, and destroy this >> communication. Any unauthorized copying, disclosure or distribution >> of the material in this communication is strictly forbidden. Any >> views or opinions presented in this email are solely those of the >> author and do not necessarily represent those of the company. >> Finally, the recipient should check this email and any attachments >> for the presence of viruses. The company accepts no liability for any damage >> caused by any virus transmitted by this email. >> >> >> > > > -- > Regards, > Shalin Shekhar Mangar. > -- Regards, Shalin Shekhar Mangar. NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Unable to connect to correct port in solr 6.2.0
HI All, I am trying to setup the solr in Redhat Linux, using the install_solr_service.sh script of solr.6.2.0 tgz. The script runs and starts the solr on port 8983 even when the port is specifically specified as 2016. /root/install_solr_service.sh solr-6.2.0.tgz -i /opt -d /var/solr -u root -s solr -p 2016 Is this correct way to setup solr in linux? Also, I have observed that if I go to the /bin/solr and start with the port number its working as expected but not as service. I would like to setup the SOLR in SOLRCloud mode with external zookeepers. Could someone please advise on this? NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Authenticating the SOLR 6.0 using Kerberos Authentication
Hi All, We are running a SOLR 6.0 in AWS EC2 instance (Windows Server 2012) . Based on the below URL, I found that we would be able to Authenticate the SOLR in standalone mode using "Kerberos Authentication". But since we are having this in the AWS, we don't have the control on the domain and Kerberos is using the Users from Active Directory which we are unable to add in our case. Could anyone please advise on any other authentication process which we might be able to use or any process steps on Kerberos? https://cwiki.apache.org/confluence/display/solr/Authentication+and+Authorization+Plugins Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Can we directly move the solr instance running as standalone to SOLR CLOUD?
HI, Can some one guide me on this? I have a standalone SOLR instance running as a service in Windows, I would like to move towards the SOLR CLOUD, as it provides various benefits like DR, scalability etc. I would like to use the same instance or core if possible from the standalone instance to SOLR cloud. Can we do it? If yes, Is it advisable? Thanks and Regards, Preeti Bhat From: Preeti Bhat Sent: Thursday, June 23, 2016 9:33 AM To: 'solr-user@lucene.apache.org' Subject: RE: Can we directly move the solr instance running as standalone to SOLR CLOUD? Hi All, Sorry for asking the same question again, but could someone please advise me on this. Thanks, Preeti From: Preeti Bhat Sent: Wednesday, June 22, 2016 1:58 PM To: 'solr-user@lucene.apache.org' Subject: Can we directly move the solr instance running as standalone to SOLR CLOUD? Hi, I have a standalone SOLR instance running as a service in Windows, I would like to move towards the SOLR CLOUD, as it provides various benefits like DR, scalability etc. I would like to use the same instance or core if possible from the standalone instance to SOLR cloud. Can we do it? If yes, Is it advisable? Thanks, Preeti NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: Can we directly move the solr instance running as standalone to SOLR CLOUD?
Hi All, Sorry for asking the same question again, but could someone please advise me on this. Thanks, Preeti From: Preeti Bhat Sent: Wednesday, June 22, 2016 1:58 PM To: 'solr-user@lucene.apache.org' Subject: Can we directly move the solr instance running as standalone to SOLR CLOUD? Hi, I have a standalone SOLR instance running as a service in Windows, I would like to move towards the SOLR CLOUD, as it provides various benefits like DR, scalability etc. I would like to use the same instance or core if possible from the standalone instance to SOLR cloud. Can we do it? If yes, Is it advisable? Thanks, Preeti NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Can we directly move the solr instance running as standalone to SOLR CLOUD?
Hi, I have a standalone SOLR instance running as a service in Windows, I would like to move towards the SOLR CLOUD, as it provides various benefits like DR, scalability etc. I would like to use the same instance or core if possible from the standalone instance to SOLR cloud. Can we do it? If yes, Is it advisable? Thanks, Preeti NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Recall: how can we use multi term search along with stop words
Preeti Bhat would like to recall the message, "how can we use multi term search along with stop words". NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: how can we use multi term search along with stop words
Hi, I was firing both leading and trailing queries. And the tollc is an example where we have llc which is stopword for me but needs to be retrieved during search. Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com.INVALID] Sent: Thursday, May 26, 2016 10:11 PM To: solr-user@lucene.apache.org; sandhus...@gmail.com Subject: Re: how can we use multi term search along with stop words Hi, Are you firing both trailing and leading wildcard query? Or you just put stars for emphasizing purposes? Please consider using normal queries, since you are already using a tokenized field. By the way what is 'tollc soon'? Ahmet On Thursday, May 26, 2016 4:33 PM, Preeti Bhat wrote: Hi Ahmet & Sid, Thanks for the reply I have the below requirement 1) If I search with say company_nm:*llc* then we should not return any results or only few results where llc is embedded in other words like tollc soon. So I had implemented the stopwords. 2) But If I search with say company_nm:*google llc* then it should return the result of google llc and soon. The problem here is 1st part is working perfectly, while the second part is not working. Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com -Original Message- From: Siddhartha Singh Sandhu [mailto:sandhus...@gmail.com] Sent: Thursday, May 26, 2016 6:54 PM To: solr-user@lucene.apache.org; Ahmet Arslan Subject: Re: how can we use multi term search along with stop words Hi Preeti, You can use the analysis tool in the Solr console to see how your queries are being tokenized. Based on your results you might need to make changes in "strings_ci". Also, If you want to be able to search on stopwords you might want to remove solr.StopFilterFactory from indexing and query analyzer of "strings_ci". The stopwords.txt is present in the core conf directory. You will need to re-index after you make these changes. Regards, Sid. On Thu, May 26, 2016 at 7:26 AM, Ahmet Arslan wrote: > Hi Bhat, > > What do you mean by multi term search? > In your first e-mail, your example uses quotes, which means > phrase/proximity search. > > ahmet > > > > On Thursday, May 26, 2016 11:49 AM, Preeti Bhat > > wrote: > HI All, > > Sorry for asking the same question again, but could someone please > advise me on this. > > > Thanks and Regards, > Preeti Bhat > > > From: Preeti Bhat > Sent: Wednesday, May 25, 2016 2:22 PM > To: solr-user@lucene.apache.org > Subject: how can we use multi term search along with stop words > > HI, > > I am trying to search the field named company_nm with value "Google llc". > We have the stopword on "llc", so when I try to search it returns 0 > results. Could anyone please guide me through the process of using > stopwords in multi term search. > > Please note I am using solr 6.0.0 and using standard parser. > > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > > > stored="true"/> > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liab
RE: how can we use multi term search along with stop words
Hi, I was firing both leading and trailing queries. And the tollc is an example where we have llc which is stopword for me but needs to be retrieved during search. Thanks and Regards, Preeti Bhat -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com.INVALID] Sent: Thursday, May 26, 2016 10:11 PM To: solr-user@lucene.apache.org; sandhus...@gmail.com Subject: Re: how can we use multi term search along with stop words Hi, Are you firing both trailing and leading wildcard query? Or you just put stars for emphasizing purposes? Please consider using normal queries, since you are already using a tokenized field. By the way what is 'tollc soon'? Ahmet On Thursday, May 26, 2016 4:33 PM, Preeti Bhat wrote: Hi Ahmet & Sid, Thanks for the reply I have the below requirement 1) If I search with say company_nm:*llc* then we should not return any results or only few results where llc is embedded in other words like tollc soon. So I had implemented the stopwords. 2) But If I search with say company_nm:*google llc* then it should return the result of google llc and soon. The problem here is 1st part is working perfectly, while the second part is not working. Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com -Original Message- From: Siddhartha Singh Sandhu [mailto:sandhus...@gmail.com] Sent: Thursday, May 26, 2016 6:54 PM To: solr-user@lucene.apache.org; Ahmet Arslan Subject: Re: how can we use multi term search along with stop words Hi Preeti, You can use the analysis tool in the Solr console to see how your queries are being tokenized. Based on your results you might need to make changes in "strings_ci". Also, If you want to be able to search on stopwords you might want to remove solr.StopFilterFactory from indexing and query analyzer of "strings_ci". The stopwords.txt is present in the core conf directory. You will need to re-index after you make these changes. Regards, Sid. On Thu, May 26, 2016 at 7:26 AM, Ahmet Arslan wrote: > Hi Bhat, > > What do you mean by multi term search? > In your first e-mail, your example uses quotes, which means > phrase/proximity search. > > ahmet > > > > On Thursday, May 26, 2016 11:49 AM, Preeti Bhat > > wrote: > HI All, > > Sorry for asking the same question again, but could someone please > advise me on this. > > > Thanks and Regards, > Preeti Bhat > > > From: Preeti Bhat > Sent: Wednesday, May 25, 2016 2:22 PM > To: solr-user@lucene.apache.org > Subject: how can we use multi term search along with stop words > > HI, > > I am trying to search the field named company_nm with value "Google llc". > We have the stopword on "llc", so when I try to search it returns 0 > results. Could anyone please guide me through the process of using > stopwords in multi term search. > > Please note I am using solr 6.0.0 and using standard parser. > > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > > > stored="true"/> > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. NOTICE
RE: how can we use multi term search along with stop words
Hi Ahmet & Sid, Thanks for the reply I have the below requirement 1) If I search with say company_nm:*llc* then we should not return any results or only few results where llc is embedded in other words like tollc soon. So I had implemented the stopwords. 2) But If I search with say company_nm:*google llc* then it should return the result of google llc and soon. The problem here is 1st part is working perfectly, while the second part is not working. Thanks and Regards, Preeti Bhat Shore Group Associates LLC (C) +91-996-644-8187 www.ShoreGroupAssociates.com -Original Message- From: Siddhartha Singh Sandhu [mailto:sandhus...@gmail.com] Sent: Thursday, May 26, 2016 6:54 PM To: solr-user@lucene.apache.org; Ahmet Arslan Subject: Re: how can we use multi term search along with stop words Hi Preeti, You can use the analysis tool in the Solr console to see how your queries are being tokenized. Based on your results you might need to make changes in "strings_ci". Also, If you want to be able to search on stopwords you might want to remove solr.StopFilterFactory from indexing and query analyzer of "strings_ci". The stopwords.txt is present in the core conf directory. You will need to re-index after you make these changes. Regards, Sid. On Thu, May 26, 2016 at 7:26 AM, Ahmet Arslan wrote: > Hi Bhat, > > What do you mean by multi term search? > In your first e-mail, your example uses quotes, which means > phrase/proximity search. > > ahmet > > > > On Thursday, May 26, 2016 11:49 AM, Preeti Bhat > > wrote: > HI All, > > Sorry for asking the same question again, but could someone please > advise me on this. > > > Thanks and Regards, > Preeti Bhat > > > From: Preeti Bhat > Sent: Wednesday, May 25, 2016 2:22 PM > To: solr-user@lucene.apache.org > Subject: how can we use multi term search along with stop words > > HI, > > I am trying to search the field named company_nm with value "Google llc". > We have the stopword on "llc", so when I try to search it returns 0 > results. Could anyone please guide me through the process of using > stopwords in multi term search. > > Please note I am using solr 6.0.0 and using standard parser. > > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > words="stopwords.txt" ignoreCase="true"/> > > > > > > > stored="true"/> > > > Thanks and Regards, > Preeti Bhat > > > > NOTICE TO RECIPIENTS: This communication may contain confidential > and/or privileged information. If you are not the intended recipient > (or have received this communication in error) please notify the > sender and it-supp...@shoregrp.com immediately, and destroy this > communication. Any unauthorized copying, disclosure or distribution of > the material in this communication is strictly forbidden. Any views or > opinions presented in this email are solely those of the author and do > not necessarily represent those of the company. Finally, the recipient > should check this email and any attachments for the presence of > viruses. The company accepts no liability for any damage caused by any virus > transmitted by this email. > NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
RE: how can we use multi term search along with stop words
HI All, Sorry for asking the same question again, but could someone please advise me on this. Thanks and Regards, Preeti Bhat From: Preeti Bhat Sent: Wednesday, May 25, 2016 2:22 PM To: solr-user@lucene.apache.org Subject: how can we use multi term search along with stop words HI, I am trying to search the field named company_nm with value "Google llc". We have the stopword on "llc", so when I try to search it returns 0 results. Could anyone please guide me through the process of using stopwords in multi term search. Please note I am using solr 6.0.0 and using standard parser. Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
how can we use multi term search along with stop words
HI, I am trying to search the field named company_nm with value "Google llc". We have the stopword on "llc", so when I try to search it returns 0 results. Could anyone please guide me through the process of using stopwords in multi term search. Please note I am using solr 6.0.0 and using standard parser. Thanks and Regards, Preeti Bhat NOTICE TO RECIPIENTS: This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender and it-supp...@shoregrp.com immediately, and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.