query - part default OR and part default AND

2011-09-14 Thread Omri Cohen
Hi All, I have two fields in my schema: field1, field2 , for the sake of the example I'll define to phrases: phrase1 - solr is the best fts ever phrase2 - let us all contribute to open source for a better world now I want to perform the next query: field1:( phrase1) AND field2:(phrase2) my

Grouping and performing statistics per group

2011-08-25 Thread Omri Cohen
Hi All, I want to group-by certain field and perform statistics per group on a certain field of my choice. For example, if I have the next documents in my collection: doc child-id 12353 /child-id weight 65 /weight gender male /gender /doc doc child-id 12353 /child-id weight 63 /weight gender

Re: Grouping and performing statistics per group

2011-08-25 Thread Omri Cohen
Thanks, but I actually need something more deterministic and more accurate.. Anyone knows if there is an already existing feature for that? thanks again

Re: Grouping and performing statistics per group

2011-08-25 Thread Omri Cohen
Hi, thanks for your reply.. it doesn't work. I am getting the plain stats results at the end of the response, but no statistics per group.. thanks anyway

Re: Content recommendation using solr?

2011-08-18 Thread Omri Cohen
check out OutBrain

filtering non english text from my results

2011-08-15 Thread Omri Cohen
Hi All, I am looking for a solution to filter out text which contains non english words. Where my goal is to present my english speaking users with results in their language. any ideas? thanks Omri

Results Group-By using SolrJ

2011-08-14 Thread Omri Cohen
Hi All, I am trying to group by results using SolrJ. According to https://issues.apache.org/jira/browse/SOLR-2637 the feature was added, so I upgraded to SolrJ-3.4-Snapshot and I can see the necessary method for grouping in QueryResponse, which is getGroupResponse(). The only thing left that I

Re: Results Group-By using SolrJ

2011-08-14 Thread Omri Cohen
the normal SolrQuery#set(...) methods to enable grouping. The following code should enable grouping via SolrJ api: SolrQuery query = new SolrQuery(); query.set(GroupParams.GROUP, true); query.set(GroupParams.GROUP_FIELD, your_field); Martijn On 14 August 2011 16:53, Omri Cohen omri

solr scale on trie fields

2011-06-23 Thread Omri Cohen
is far more important to me than the second.. thanks *Omri Cohen* Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-6036295 My profiles: [image: LinkedIn] http://www.linkedin.com/in/omric [image: Twitter] http://www.twitter.com/omricohe [image: WordPress]http://omricohen.me

Re: Removing duplicate documents from search results

2011-06-23 Thread Omri Cohen
What you need to do, is to calculate some HASH (using any message digest algorithm you want, md5, sha-1 and so on), then do some reading on solr field collapse capabilities. Should not be too complicated.. *Omri Cohen* Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-6036295

Copying few field using copyField to non multiValued field

2011-06-15 Thread Omri Cohen
getting the next exception: ERROR: multiple values encountered for non multiValued copy field at_location some one has any idea, how I solve this without changing at_location to multiField? thanks *Omri Cohen* Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-6036295 My

Re: Copying few field using copyField to non multiValued field

2011-06-15 Thread Omri Cohen
thanks for the quick response, though as I said in my original post: *some one has any idea, how I solve this without changing at_location to multiField? * thank you very much though * * *Omri Cohen* Co-founder @ yotpo.com | o...@yotpo.com | +972-50-7235198 | +972-3-6036295 My profiles

Re: Copying few field using copyField to non multiValued field

2011-06-15 Thread Omri Cohen
X6943 | bob.sandif...@sirsidynix.com www.sirsidynix.com -Original Message- From: Omri Cohen [mailto:omri...@gmail.com] Sent: Wednesday, June 15, 2011 8:42 AM To: solr-user@lucene.apache.org Subject: Re: Copying few field using copyField to non multiValued field thanks