Using LocalParams in StatsComponent to create a price slider?

2011-12-14 Thread Mark Schoy
Hi, I'm using the StatsComponent to receive to lower and upper bounds of a price field to create a "price slider". If someone sets the price range to $100-$200 I have to add a filter to the query. But then the lower and upper bound are calculated of the filtered result. Is it possible to use Loca

Reducing heap space consumption for large dictionaries?

2011-12-07 Thread Mark Schoy
Hi, in my index schema I has defined a DictionaryCompoundWordTokenFilterFactory and a HunspellStemFilterFactory. Each FilterFactory has a dictionary with about 100k entries. To avoid an out of memory error I have to set the heap space to 128m for 1 index. Is there a way to reduce the memory cons

Re: Facet on a field with rows=n

2011-12-05 Thread Mark Schoy
Hi Kashif, that is not possible in solr. The facets are always based on all the documents matching the query. But there is a workaround: 1) Do a normal query without facets (you only need to request doc ids at this point) 2) Collect all the IDs of the documents returned 3) Do a second query for a

Re: Stemming - How to add tokens and dont replace the existing tokens?

2011-12-05 Thread Mark Schoy
> This would allow for a higher boost on the unstemmed field. > > Use copyField for convenience to copy the content from one field to the > other one. > > Marian > > > 2011/12/5 Mark Schoy > >> Hi, >> >> I like to use the HunspellStemFilterFactory to

Stemming - How to add tokens and dont replace the existing tokens?

2011-12-05 Thread Mark Schoy
Hi, I like to use the HunspellStemFilterFactory to improve my search results. Why isn't there an arg "inject" like in solr.PhoneticFilterFactory to add tokens instead of replacing them? I don't want to replace them, because documents with the "unstemmed" word should be more relevant. Thanks.

Re: Best practise to automatically change a field value for a specific period of time

2011-12-02 Thread Mark Schoy
cant be combined with field collapsing. 2011/12/2 Morten Lied Johansen : > On 02. des. 2011 12:21, Mark Schoy wrote: > > This is a problem that can be solved with grouping. > http://wiki.apache.org/solr/FieldCollapsing > > For each possible price on a product, you index a document w

Best practise to automatically change a field value for a specific period of time

2011-12-02 Thread Mark Schoy
Hi, I have an solr index for an online shop with a field "price" which contains the standard price of a product. But in the database, the shop owner can specify a period of time with an alternative price. For example: standard price is $20.00, but 12/24/11 08:00am to 12/26/11 11:59pm = $12.59 Of

Solr Replication: relative path in confFiles Element?

2011-10-25 Thread Mark Schoy
Hi, is ist possible to define a relative path in confFile? For example: ../../x.xml If yes, to which location will the file be copied at the slave? Thanks.

Re: Maximum deep of nested boolean queries

2011-10-06 Thread Mark Schoy
mputation resources needed, of > course).  How complex/deep do your queries need to be? > > Otis > > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > Lucene ecosystem search :: http://search-lucene.com/ > > > ----- Original Message - >> From:

Maximum deep of nested boolean queries

2011-10-06 Thread Mark Schoy
Is there a maximum deep of nested boolean queries? For example: ((+a b -c) or (c -d) not e) and (+f +g)

Re: How to create a solr core if no solr cores were created before?

2011-07-12 Thread Mark Schoy
/11 Gabriele Kahlout : > have a look here [1]. > > [1] > https://issues.apache.org/jira/browse/SOLR-2645?focusedCommentId=13062748&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13062748 > > On Mon, Jul 11, 2011 at 4:46 PM, Mark Schoy wrote: > >

How to create a solr core if no solr cores were created before?

2011-07-11 Thread Mark Schoy
Hi, I tried to create a solr core but I always get "No such solr core:"-Exception. - File home = new File( pathToSolrHome ); File f = new File( home, "solr.xml" ); CoreContainer coreContainer = new CoreContainer(); coreContainer.load( pathToSolrHome, f ); EmbeddedSolrServer server = new Emb

Using two repeater to rapidly switching Master and Slave (Replication)?

2011-06-21 Thread Mark Schoy
Hi, I have an idea how to switching master and slave in case of one server is crashing: Setting up two server as repeater but disabling master and slave config on both with false. Now you can dynamically disable and enable master or slave option by url: enable / disable replication on master: h

Re: Master Slave Replication in Solr Cloud - What happens if the master is not available?

2011-06-20 Thread Mark Schoy
ng necessary. > > Best > Erick > > On Mon, Jun 20, 2011 at 9:45 AM, Mark Schoy wrote: >> Thanks for your answer Erick. >> >> So the easiest way will be to set up 2 shard cluster with shard replicas ;) >> >> 2011/6/20 Erick Erickson : >>> N

Re: Master Slave Replication in Solr Cloud - What happens if the master is not available?

2011-06-20 Thread Mark Schoy
le all this is going > on. It's easier > if you have more than one slave so you can move things around while the > remaining slave is reconfigured (or whatever).... > > Best > Erick > > On Mon, Jun 20, 2011 at 8:28 AM, Mark Schoy wrote: >> Hi, >> >>

Master Slave Replication in Solr Cloud - What happens if the master is not available?

2011-06-20 Thread Mark Schoy
Hi, if I use a master slave replication in Solr Cloud and the master crashes, can the slave automatically switch to master mode? Or is there another way to index documents after the master is down? Thanks.

Re: why too many open files?

2011-06-19 Thread Mark Schoy
Hi, did you have checked the max opened files of your OS? see: http://lj4newbies.blogspot.com/2007/04/too-many-open-files.html 2011/6/20 Jason, Kim > Hi, All > > I have 12 shards and ramBufferSizeMB=512, mergeFactor=5. > But solr raise java.io.FileNotFoundException (Too many open files). > m

Re: Indexing-speed issues (chart included)

2011-06-17 Thread Mark Schoy
> Well, it's kinda hard to say anything pertinent with so little > information. How are you indexing things? What kind of documents? > How are you feeding docs to Solr? > > You might review: > http://wiki.apache.org/solr/UsingMailingLists > > Best > Erick > >

Re: Performance loss - querying more than 64 cores (randomly)

2011-06-16 Thread Mark Schoy
decreasing rapidly, > probably more of a gentle slope down if you plot it (your double the number > of cores every time). > > I would be very interested in hearing about what you find. > > Cheers > > François > > On Jun 16, 2011, at 10:00 AM, Andrzej Bialecki wrote: > >

Performance loss - querying more than 64 cores (randomly)

2011-06-16 Thread Mark Schoy
Hi, I set up a Solr instance with 512 cores. Each core has 100k documents and 15 fields. Solr is running on a CPU with 4 cores (2.7Ghz) and 16GB RAM. Now I've done some benchmarks with JMeter. On each thread iteration JMeter queriing another Core by random. Here are the results (Duration: each w