Re: help implementing a couple of business rules

2010-01-12 Thread Aleksander Stensby
For your first question, wouldn't it be possible to achieve that with some simple boolean logic? I mean, if you have a requirement to match any of the other fields AND description2, but not if it ONLY matches description 2: say matching x against field A, B, and description 2: ((A:x OR B:x) AND

Re: Yankee's Solr integration

2010-01-12 Thread Aleksander Stensby
They have probably added the logic for that server-side. Solr does not support these type of features, but they are easy to implement. Saving a search could be as easy as storing the selected query parameters. Then creating an alert (or RSS feed) for that would be a process on the server that

Re: Facets and distributed search

2010-01-05 Thread Aleksander Stensby
... could you post an actual example? -Yonik http://www.lucidimagination.com On Mon, Jan 4, 2010 at 4:15 AM, Aleksander Stensby aleksander.sten...@integrasco.com wrote: Hi everyone! I've posted a similar question earlier, but in a thread related to facets in general, so I thought I'd repost

Re: Optimize not having any effect on my index

2010-01-04 Thread Aleksander Stensby
.../mainIndex Aleksander Stensby wrote: Hey guys, I'm getting some strange behavior here, and I'm wondering if I'm doing anything wrong.. I've got an unoptimized index, and I'm trying to run the following command: http://server:8983/solr/update?optimize=truemaxSegments

Facets and distributed search

2010-01-04 Thread Aleksander Stensby
Hi everyone! I've posted a similar question earlier, but in a thread related to facets in general, so I thought I'd repost it here as a separate thread. I have a faceted search that is very fast when I executed the query on a single solr server, but is significantly slower when executed in a

Optimize not having any effect on my index

2009-12-18 Thread Aleksander Stensby
Hey guys, I'm getting some strange behavior here, and I'm wondering if I'm doing anything wrong.. I've got an unoptimized index, and I'm trying to run the following command: http://server:8983/solr/update?optimize=truemaxSegments=10waitFlush=false Tried it first directly in the browser, it

Re: Can solr do the equivalent of select distinct(field)?

2009-12-17 Thread Aleksander Stensby
A follow up question on this Hoss: If I have a set of documents, let's say this email thread. Each email has a unique author. All emails in the thread are indexed with threadid=33 If I want to count the number of unique authors in this email thread, I could go along the lines you mention at the

Re: Can solr do the equivalent of select distinct(field)?

2009-12-17 Thread Aleksander Stensby
Forgot to add facet.mincount=1, obviously. But still, is this the only or prefered way of doing something along these lines? Or is there a different (better) approach? Best regards, Aleksander On Thu, Dec 17, 2009 at 5:59 PM, Aleksander Stensby aleksander.sten...@integrasco.com wrote

Re: Can solr do the equivalent of select distinct(field)?

2009-12-17 Thread Aleksander Stensby
, Aleksander Stensby wrote: A follow up question on this Hoss: If I have a set of documents, let's say this email thread. Each email has a unique author. All emails in the thread are indexed with threadid=33 If I want to count the number of unique authors in this email thread, I could go along

Sorting on primitive types

2009-09-21 Thread Aleksander Stensby
Hey, I have a question regarding the primitive type definitions and use of those for sorting. I have an ID field in my index of type SortableLongField, and on my test index I have about 2 million documents. When doing a sort=id desc and q=*:* I'm getting out of memory (heap space)... running the

Re: Sorting on primitive types

2009-09-21 Thread Aleksander Stensby
Perfect, thanks a heap Yonik! Cheers, Aleks On Mon, Sep 21, 2009 at 3:47 PM, Yonik Seeley yo...@lucidimagination.comwrote: On Mon, Sep 21, 2009 at 3:30 AM, Aleksander Stensby aleksander.sten...@integrasco.com wrote: So I'm wondering if the Trie based field types are less memory expensive

Re: Trie Date question

2009-08-28 Thread Aleksander Stensby
Thanks for the reply Yonik! I'm using the nightly from 2009-08-20, so its a rather fresh build. And by comparing the schema with the one im using now I had made a mistake when defining the field. By examining the most recent build, i noticed that the normal date field is defined as follows:

Re: Trie Date question

2009-08-28 Thread Aleksander Stensby
but will try out the new example data once its back up again then, because even though I changed my schema definitions, the two fields still gives back different results... :( I'll keep you updated. - Aleks On Fri, Aug 28, 2009 at 9:33 AM, Aleksander Stensby aleksander.sten...@integrasco.com wrote

Re: Can solr do the equivalent of select distinct(field)?

2009-08-28 Thread Aleksander Stensby
but you could use facets to do something similar as a distinct where... lets say you filter your query on something and want to know how many distinct categories that your results comprise. then you can facet on the category field and count the number of facet values that are returned, right? but

Trie Date question

2009-08-27 Thread Aleksander Stensby
Hello everyone, after reading Grant's article about TrieRange capabilities on the lucid blog I did some experimenting, but I have some trouble with the tdate type and I was hoping that you guys could point me in the right direction. So, basically I index a regular solr date field and use that for