Re: SolrCloud - Service unavailable

2013-09-18 Thread Indika Tantrigoda
September 2013 21:27, Shawn Heisey wrote: > On 9/18/2013 8:12 AM, Indika Tantrigoda wrote: > > I am using 3 Solr instances behind an Amazon ELB with 1 shared. Serving > > data via Solr works as expected, however I noticed a few times a 503 > error > > was poping up from th

SolrCloud - Service unavailable

2013-09-18 Thread Indika Tantrigoda
Hi All, I am using 3 Solr instances behind an Amazon ELB with 1 shared. Serving data via Solr works as expected, however I noticed a few times a 503 error was poping up from the applications accessing Solr. Accessing Solr is done via the AWS ELB. 3 Zookeeper instances also run on the same instanc

Re: Solr Range Queries with Field value

2013-04-30 Thread Indika Tantrigoda
gt; would merchant_end_of_day_in_utc_epoch be determined? > > Presumably there are zillions of values across your index for > > this value, depending on the document. Which one should be > > used? > > > > Best > > Erick > > > > On Mon, Apr 29, 2013 a

Re: Stored values and date math query

2013-03-04 Thread Indika Tantrigoda
Thanks for the insights to the query Hoss. I am going to try out the methods you highlighted. Thanks, Indika On 3 March 2013 01:19, Chris Hostetter wrote: > > : sessionAvailableNowQuery = {!edismax}(start_time:[* TO > : 1970-01-01T12:37:030Z] AND end_time:[1970-01-01T12:37:030Z + > : (_val_:ord

Re: Stored values and date math query

2013-03-01 Thread Indika Tantrigoda
l > be from indexed terms, not stored ones > > Best > Erick > > > On Tue, Feb 26, 2013 at 4:05 PM, Indika Tantrigoda >wrote: > > > Hi All, > > > > I am trying to use a stored value in the index and add it to a date > > component as follows > >

Re: Execute an independent query from the main query

2012-11-19 Thread Indika Tantrigoda
l together. > > Otis > -- > Performance Monitoring - http://sematext.com/spm/index.html > Search Analytics - http://sematext.com/search-analytics/index.html > > > > > On Sun, Nov 18, 2012 at 10:39 PM, Indika Tantrigoda >wrote: > > > Hi Otis, > > > > Act

Re: Date math query syntax

2012-11-18 Thread Indika Tantrigoda
et from a base > date literal value. > > -- Jack Krupansky > > -Original Message- From: Indika Tantrigoda > Sent: Sunday, November 18, 2012 3:11 PM > To: solr-user@lucene.apache.org > Subject: Date math query syntax > > > Hi All, > > I am trying to use d

Re: Retrieve unique documents on a non id field

2012-11-08 Thread Indika Tantrigoda
Hi, Thanks for the reply. Yes, I grouped the documents based on the restaurant_id and got 1 result per group. Setting the group.format to simple helped with the formatting. Thanks, Indika On 8 November 2012 12:10, Rafał Kuć wrote: > Hello! > > Look at the field collapsing functionality - > htt

Re: Sorting by boolean function

2012-11-07 Thread Indika Tantrigoda
Hi, Yes, the new sort query worked!. Thank you for the quick response. Thanks, Indika On 8 November 2012 04:31, Rafał Kuć wrote: > Hello! > > Ahhh, sorry. I see now. The function query you are specifying for the > sort is not proper. Solr doesn't understand that part: > > exists(start_time:[*

Re: Sorting by boolean function

2012-11-07 Thread Indika Tantrigoda
Thanks for the response, I did append the sort order but the result was the same, Can't determine a Sort Order (asc or desc) in sort spec 'if(exists(start_time:[* TO 1721] AND end_time:[1721 TO *]),100,0) asc', pos=23 Thanks, Indika On 8 November 2012 04:02, Rafał Kuć wrote: > Hello! > > Fro

Re: SolrJ 4.0.0 addFilterQuery() issue ?

2012-10-31 Thread Indika Tantrigoda
Just created the defect in Jira. https://issues.apache.org/jira/browse/SOLR-4020 Thanks. On 31 October 2012 10:47, Indika Tantrigoda wrote: > Thanks for the reply Chris. > > Yes you are correct, SolrJ is serializing a String[] instead of the > separate String values. > > U

Re: How to change the boost of fields in edismx at runtime

2012-10-30 Thread Indika Tantrigoda
Hi Saroj, You could use the boost function in a FunctionQuery. Something similar to, _val_:Title^10 and _val_:Keyword^2 _val_:Title^2 and _val_:Keyword^10 See http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documentson how to use the boost function. Thanks, Indik

Re: SolrJ 4.0.0 addFilterQuery() issue ?

2012-10-30 Thread Indika Tantrigoda
Thanks for the reply Chris. Yes you are correct, SolrJ is serializing a String[] instead of the separate String values. Using solrQuery.add("fq", "your first filter"); and solrQuery.add("fq", "your second filter"); has the same effect. Because it calls the add() method in the ModifiableSolrParams

SolrJ 4.0.0 addFilterQuery() issue ?

2012-10-30 Thread Indika Tantrigoda
Hi All, I am using Solr 4.0 and SolrJ 4.0.0 to access Solr from a Spring web application, and I seem to have an issue when querying Solr. If the SolrQuery contains more than one addFilterQuery() I get an exception stating, org.apache.solr.common.SolrException: org.apache.lucene.queryparser.classi

Re: Solr edismax clarification

2012-02-19 Thread Indika Tantrigoda
rary&start=0&debugQuery=on I use SolrJ in my application to connect to Solr. As per the query string shown above if I search for Boston public library I do not get a document that has the title Boston. Thanks. On 17 February 2012 15:55, O. Klein wrote: > > Indika Tantrigoda wrote > >

Solr edismax clarification

2012-02-16 Thread Indika Tantrigoda
Hi All, I am using edismax SearchHandler in my search and I have some issues in the search results. As I understand if the "defaultOperator" is set to OR the search query will be passed as -> The OR quick OR brown OR fox implicitly. However if I search for The quick brown fox, I get lesser result

Re: Boosting based on field values

2010-07-04 Thread Indika Tantrigoda
Hi, {!boost b=pow(1,featured_listing)} is the boost function I used. Got the results as expected. Thanks. Regards, Indika On 3 July 2010 21:10, Indika Tantrigoda wrote: > Thanks for the info. I'll try this out. > > Regards, > Indika > > > On 3 July 2010

Re: Boosting based on field values

2010-07-03 Thread Indika Tantrigoda
Thanks for the info. I'll try this out. Regards, Indika On 3 July 2010 20:48, Ahmet Arslan wrote: > > I'd like to know if its possible to boost the score of > > documents based on a > > field value. Ex. My schema has a field called isFeatured, and if the > > value of the field > > is true or "1

Boosting based on field values

2010-07-03 Thread Indika Tantrigoda
Hello all, I'd like to know if its possible to boost the score of documents based on a field value. Ex. My schema has a field called isFeatured, and if the value of the field is true or "1" I'd like to have these documents come first in a query result regardless of the score. Thanks in advance.

Re: NGramFilterFactory usage

2010-06-27 Thread Indika Tantrigoda
Hello, I got the problem solved. The issue was I was setting the wrong field name in the qf parameter of my request handler. Thanks. Regards, Indika On 27 June 2010 08:52, Indika Tantrigoda wrote: > Hello, > > > Applying the NGramFilterFactory for analyzer type="query

Re: NGramFilterFactory usage

2010-06-26 Thread Indika Tantrigoda
Hello, Applying the NGramFilterFactory for analyzer type="query" didnt solve the issue. >From the examples I've seen it is only necesssary to have the NGramFilterFactory at index time right ? Regards, Indika On 27 June 2010 01:14, Indika Tantrigoda wrote: > Hi all, >

NGramFilterFactory usage

2010-06-26 Thread Indika Tantrigoda
Hi all, I've been working with Solr for while and the search components work as expected. Recently I've had the requirement to do searching on partial words and I setup the NGramFilterFactory. My schema.xml is as follows :

Solr work at Drupal

2010-05-08 Thread Indika Tantrigoda
Hi all, Came across this, http://groups.drupal.org/node/66608 Regards, Indika

Re: Solr commit issue

2010-05-01 Thread Indika Tantrigoda
dence, but that's just a guess. > > HTH > Erick > > On Sat, May 1, 2010 at 1:07 PM, Indika Tantrigoda >wrote: > > > Hi all, > > > > I've been working with Solr for a few weeks and have gotten SolrJ > > to connect to it, index, search docume

Solr commit issue

2010-05-01 Thread Indika Tantrigoda
Hi all, I've been working with Solr for a few weeks and have gotten SolrJ to connect to it, index, search documents. However I am having an issue when a document is committed. When a document is committed it does not show in the search results if I do a *:* search, but if I search for it with som

Re: Filter query with special character using SolrJ client

2010-03-29 Thread Indika Tantrigoda
Thank you very much for the explanation. Regards, Indika On 29 March 2010 22:28, Chris Hostetter wrote: > > : It works, thanks. Just implemented the code...:):):) > : > : Could you explain what "{!field f=yourStringField}Cameras & Photos" does. > > {!field} says that the string should be parsed

Re: Filter query with special character using SolrJ client

2010-03-29 Thread Indika Tantrigoda
It works, thanks. Just implemented the code...:):):) Could you explain what "{!field f=yourStringField}Cameras & Photos" does. Regards, Indika On 29 March 2010 21:55, Chris Hostetter wrote: > > : Since the names of the string fields are not predefined I might have to > : find a method to do t

Re: Drill down a solr result set by facets

2010-03-29 Thread Indika Tantrigoda
Hi Dhanushka, Have you tried to use the filter query parameter. Check out this article, the Applying Constraints section should be helpful to you. http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr Solr Wiki link to filter query parameter http://wiki.apac

Re: Filter query with special character using SolrJ client

2010-03-28 Thread Indika Tantrigoda
Thanks for the info. I'll have a try and see how the results are. Since the names of the string fields are not predefined I might have to find a method to do this automatically. I'll try a few more workarounds and see what the results turn out to be. Regards, Indika On 29 March 2010 06:57, Ahmet

Filter query with special character using SolrJ client

2010-03-28 Thread Indika Tantrigoda
Hello, I am trying to get filter querying to work on search. When the filter query contains no special character or is a single word the filter query parameter returns the result as expected. However when I run filter query where special characters are present no results are results. e.g Cameras

Re: SolrJ and HTMLStripCharFilterFactory

2010-03-27 Thread Indika Tantrigoda
r, you sure wouldn't want to > display > "grapes wrath" which might be the tokens after lowercasing and removing > stopwords.. > > HTH > Erick > > On Sat, Mar 27, 2010 at 1:13 AM, Indika Tantrigoda >wrote: > > > Hello to all, > > > > I'

SolrJ and HTMLStripCharFilterFactory

2010-03-26 Thread Indika Tantrigoda
Hello to all, I've been working with Solr for a few weeks and I have gotten indexing and searching to work. However I am having trouble with indexing HTML content and using HTMLStripCharFilterFactory. My schema.xml looks like this -- /> and I am indexing