How to delete synonyms in a manages resource with SolrJ

2014-08-26 Thread Mathias Hodler
Hi, I'm using the HttpSolrServer and CloudSolrServer of SolrJ to querying Solr. Adding synonyms is no problem. But I can't delete synonyms because SolrServer doesn't provide any delete method. Do I overlooked something? The only way I see is using a separate HttpClient. But then I have to ensure

Listening to index updates in SolrJ?

2012-09-25 Thread Mathias Hodler
Hi, I'm using Embedded Solr 4.0 with SolrJ. In solrconfig.xml you can specify a RunExecutableListener. Is there something similar in SolrJ, so I can get an event, if the index gets updated? This can be very useful if using SolrCloud, to get an event if other shards updating the index. Thanks.

Re: Lucene FieldCache doesn' get cleaned up and OOM occurs

2012-05-14 Thread Mathias Hodler
working with, and how many unique values of what types are you sorting on? And what version of Solr are you using? On Fri, May 11, 2012 at 5:38 AM, Mathias Hodler mathias.hod...@gmail.com wrote: Hi, sorting on a field increases the Lucene FieldCache. If I'm starting 10 queries and each query

Lucene FieldCache doesn' get cleaned up and OOM occurs

2012-05-11 Thread Mathias Hodler
Hi, sorting on a field increases the Lucene FieldCache. If I'm starting 10 queries and each query sorting on a different field, 9 queries could be executed but then the Lucene FieldCache exceeds max memory and OOM occurs. In my opinion Lucene Field Cache should be cleaned up if there is not

How to only count distinct facet values of each group

2012-02-29 Thread Mathias Hodler
Hi, I'm looking for a parameter like group.truncate=true. Though I not only want to count facets based on the most relevant document of each group but based on all documents. Moreover if a facet value is in more than in one document of a group it should only count once. Example: Doc 1: type:

Tokenize result of a NGramFilterFactory in Solr (query analyzer)

2012-02-10 Thread Mathias Hodler
Hi, I'm using the NGramFilterFactory for indexing and querying. So if I'm searching for overflow it creates an query like this: mySearchField:ov ve ... erflow overflo verflow overflow But if I misspelled overflow, i.e. owerflow there are no matches because the quotes around the query:

Re: Tokenize result of a NGramFilterFactory in Solr (query analyzer)

2012-02-10 Thread Mathias Hodler
Hi Ahmet, awesome! Now it works. 2012/2/10 Ahmet Arslan iori...@yahoo.com: I'm using the NGramFilterFactory for indexing and querying. So if I'm searching for overflow it creates an query like this: mySearchField:ov ve ... erflow overflo verflow overflow But if I misspelled overflow,

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

2011-12-02 Thread Mathias Hodler
Hi Morten, thanks, this is a very good solution. I also found another solution: Creating a custom ValueSourceParser for price sorting which considered the standard price and the campaign price. In my special case I think your approach isn't working, because i also need result grouping and this

Re: Indexing-speed issues (chart included)

2011-06-21 Thread Mathias Hodler
Sorry, here are some details: requestHandler: XmlUpdateRequesetHandler protocol: http (10 concurrend threads) document: 1kb size, 15 fields cpu load: 20% memory usage: 50% But generally speaking, is that normal or must be something wrong with my configuration, ... 2011/6/17 Erick Erickson