DIH using a connection pool

2012-05-24 Thread Esteban Donato
Hi community, I am using Solr with DIH to index content from a DB.  The point is that I have to configure DIH to check changes in the DB very frequently (aprox 1 sec) to maintain the index almost up-to-date.  I noted that JDBCDataSource closes the DB connection after every execution which is not a

Re: using pre-core properties in dih config

2012-02-05 Thread Esteban Donato
they way you described it is how DIH works with variable replacement. Alternatively, you can define the per-core properties in SOLR_HOME//conf/solrcore.properties file as a list of key=value pairs. For the global variable, NUM_CORES, you can define it as a JVM system property, like -DNUM_CORES=3

Re: Catchall field does not seem to work. Solr 3.4

2012-02-04 Thread Esteban Donato
also, if you want to search across different fields without specifying field names, you can use dismax http://wiki.apache.org/solr/DisMaxQParserPlugin On Sat, Feb 4, 2012 at 11:06 AM, Ahmet Arslan wrote: >>   >>   >>   >>   >> >>  searchField >> >> >> I have noticed that 'title' field  and 'pate

Re: Solr Scoring question

2012-01-08 Thread Esteban Donato
filter queries (fq) are not included for score calculation, just the query in q parameter is used for this purpose. That's why although you get the same results, lucene will just use q=*:* in your 1st query and q=tag:car in your 2nd query to calculate the scores. As you can see since both queries

Re: NRT and replication

2011-10-26 Thread Esteban Donato
- a distributed update processor like the one Yonik wrote will do fine >> in simple situations. >> >> On Oct 17, 2011, at 7:33 PM, Esteban Donato wrote: >> >> > thanks Yonik.  Any idea of when this should be completed?  In the >> > meantime I think I will ha

Re: NRT and replication

2011-10-17 Thread Esteban Donato
thanks Yonik. Any idea of when this should be completed? In the meantime I think I will have to add docs to every replica, possibly implementing an update processor. Something similar to SOLR-2355? On Fri, Oct 14, 2011 at 7:31 PM, Yonik Seeley wrote: > On Fri, Oct 14, 2011 at 5:49 PM, Este

NRT and replication

2011-10-14 Thread Esteban Donato
Hello guys, I found soft commits very useful for NRT search requirements. However I couldn't figure out how replication works with this feature. I mean, if I have N replicas of an index for load balancing purposes, when I soft commit a doc in one of this nodes, is there any way that those "in-m

Re: text search and data aggregation, thoughts?

2011-10-14 Thread Esteban Donato
thanks Pravesh for your feedback. I have 10 million products and 165M rows of visits accumulated for 2 years. The data-aggregated needs to be shown in the search result page along with the product description. I also felt option 2 was the most suitable but wanted to have a second view. The only

text search and data aggregation, thoughts?

2011-10-12 Thread Esteban Donato
Hello community,  Let me explain my case.  I need to implement a feature that combines text search and data aggregation.  That is, the app will let the users search for products and set a date range.  As result, I need to show them products that matched the search + some data aggregated for that p

aggregate functions in Solr?

2011-09-26 Thread Esteban Donato
Hello guys,   I need to implement a functionality which requires something similar to aggregate functions in SQL.  My Solr schema looks like this: -doc_id: integer -date: date -value1: integer -value2: integer   Basically the index contains some numerical values (value1, value2, etc) per doc and

Re: multicore and replication cause OOM

2011-06-25 Thread Esteban Donato
thanks Shalin. One more question: is there any way to avoid multiple cores replicating at the same time? Like synchronizing the ReplicationHandler somehow? On Fri, Jun 24, 2011 at 6:55 AM, Shalin Shekhar Mangar wrote: > On Fri, Jun 24, 2011 at 1:41 PM, Esteban Donato > wrote: >&

Re: Query may only contain [a-z][0-9]

2011-06-24 Thread Esteban Donato
I think another alternative is to use phrase query and then a PatternReplaceFilterFactory at query time to remove the unwanted characters. Don't know if phrase query behavior meets your requirements thought. On Fri, Jun 24, 2011 at 9:39 AM, roySolr wrote: > Yes i use the dismax handler, but i wi

multicore and replication cause OOM

2011-06-24 Thread Esteban Donato
Hi, I have a Solr with 7 cores (~150MB each). All cores replicate at the same time from a Solr master instance. Every time the replication happens I get an OOM after experiencing long response times. This Solr used to have 4 cores before and I've never got an OOM with that configuration (replic

testing subscription.

2011-06-23 Thread Esteban Donato