Re:solr out of memory

2012-03-06 Thread C.Yunqin
Daniel, thanks very much:) however, i have allocated enough memory to java as follows: java -XX:+AggressiveHeap -XX:MaxPermSize=1024m -jar start.jar any other reason for that Outofmemory error ? ps: it is strange, though my search like "id: chenm" caused "SEVERE: java.lang.OutOfMemoryError:

Re: schema design help

2012-03-06 Thread Abhishek tiwari
thanks for replying .. In our RDBMS schema we have Establishment/Event/Movie master relations. Establishment has title ,description , ratings, tags, cuisines (multivalued), services (multivalued) and features (multivalued) like fields..similarly in Event title, description, category(multivalued)

Re: A sorting question.

2012-03-06 Thread Chris Hostetter
: problem becomes from MoreLikeThis behaviour. As you probably know that Solr : feature only suggests similar components by the first - and only - document : returned from the original query. That is if you have a query that returns : 5 documents (a query with five IDs with OR boolean clauses, lik

Re: performance between ExternalFileField and Join

2012-03-06 Thread Chris Hostetter
: unique terms) but I agree with Erik on the ExternalFileField as you can use : it just inside a function query, for example, for boosting. with {!frange} it would be trivial to filter based on values in an ExternalFileField ... whether that would be *faster* then a custom plugin that worked sim

Re: Building a resilient cluster

2012-03-06 Thread Mark Miller
On Mar 5, 2012, at 11:49 PM, Ranjan Bagchi wrote: > it didn't kick the second shard out of the cluster. > > Any way to do this? If you unload a core rather than just shut down the instance, that core will remove it's info from zookeeper. Currently, that won't make it forget about a logical sh

Re: Building a resilient cluster

2012-03-06 Thread Mark Miller
On Mar 6, 2012, at 7:50 AM, Darren Govoni wrote: > What I think was mentioned on this a bit ago is that the index stops > working if one of the "nodes" goes down unless its a replica. > > You have 2 "nodes" running with numShards=2? Thus if one goes down the > entire index is inoperable. In the

Re: about solrj giving facet=true instead of facet=on

2012-03-06 Thread Yuhan Zhang
nvm, they are identical. The problem is that I'm missing rows=0 query string that counts identical fiels are: solr/select/?q=*%3A*&rows=0&facet=true&facet.field=domain On Tue, Mar 6, 2012 at 4:26 PM, Yuhan Zhang wrote: > hi all, > > I'm using the solrj Java client to query solr server with face

Re: Using multiple DirectSolrSpellcheckers for a query

2012-03-06 Thread Nalini Kartha
Hi James, Thanks for the detailed reply and sorry for the delay getting back. One issue for us with using the collate functionality is that some of our query types are default OR (implemented using the mm param value). Since the collate functionality reruns the query using all param values speci

about solrj giving facet=true instead of facet=on

2012-03-06 Thread Yuhan Zhang
hi all, I'm using the solrj Java client to query solr server with facet. However, it ends up that it is giving the wrong query string, as I'm expecting: /solr/select/?q=*%3A*&facet=on&facet.field=domain it gave /solr/select/?q=*%3A*&facet=true&facet.field=domain it set facet=true instead of facet

Re: Need tokenization that finds part of stringvalue

2012-03-06 Thread PeterKerk
edismax did the trick! Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/Need-tokenization-that-finds-part-of-stringvalue-tp3785366p3805045.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Need tokenization that finds part of stringvalue

2012-03-06 Thread Ahmet Arslan
> @iorixxx: Sorry it took so long, had > some difficulties upgrading to 3.5.0 > > It still doesnt work. Here's what I have now: > > I copied text_general_rev from > http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/conf/schema.xml > to my schema.xml: >     class="solr.TextField"

Re: Need tokenization that finds part of stringvalue

2012-03-06 Thread PeterKerk
@iorixxx: Sorry it took so long, had some difficulties upgrading to 3.5.0 It still doesnt work. Here's what I have now: I copied text_general_rev from http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/conf/schema.xml to my schema.xml:

Re: XSLT Response Writer and content transformation

2012-03-06 Thread darul
also tried : to get my description content processed, but no success until now ;) -- View this message in context: http://lucene.472066.n3.nabble.com/XSLT-Response-Writer-and-content-transformation-tp3800251p3804528.html Sent from the Solr - User mailing list archive at Nabble.co

Re: XSLT Response Writer and content transformation

2012-03-06 Thread darul
Well, by default solr distribution is using xalan ? - I have created my custom class mypackage.XsltCustomFunctions, with my custom method processContent(), put jar in jetty/lib root directory. - update my rss.xsl file by adding xmlns:ev="xalan://mypackage.XsltCustomFunctions" in header - try this

Re: How to Index Custom XML structure

2012-03-06 Thread Anupam Bhattacharya
Thanks Erick, for the prompt response, Both the suggestions will be useful for a one time indexing activity. Since DIH will be one time process of indexing the repository thus it is of no use in my case.Writing a standalone Java program utilizing SolrJ will again be a one time indexing process. I

Re: Highlighting Multivalued Field question

2012-03-06 Thread Jamie Johnson
so my mistake on this, I was not setting hl.snippets so the default value of 1 was being used. If I change to 2 I get the expected result. On Tue, Mar 6, 2012 at 9:10 AM, Jamie Johnson wrote: > as an FYI I tried this with the standard highlighter and got the same > result.  Additionally if it ma

Re: schema design help

2012-03-06 Thread Gora Mohanty
On 6 March 2012 18:01, Abhishek tiwari wrote: > i am new in solr  want help in shema design .  i have multiple entities > like Event , Establishments and Movies ..each have different types of > relations.. should i make diffrent core for each entities ? It depends on your use case, i.e., what wou

Re: Highlighting Multivalued Field question

2012-03-06 Thread Jamie Johnson
as an FYI I tried this with the standard highlighter and got the same result. Additionally if it matters this is using the following text field definition

Re: need input - lessons learned or best practices for data imports

2012-03-06 Thread Erick Erickson
At this level of control consider using SolrJ instead, especially for alerts and such. See: http://www.lucidimagination.com/blog/2012/02/14/indexing-with-solrj/ Best Erick On Mon, Mar 5, 2012 at 12:29 PM, geeky2 wrote: > hello all, > > we are approaching the time when we will move our first sol

Re: ngram synonyms & dismax together

2012-03-06 Thread Erick Erickson
Where are synonyms in your ngrammed-field filter chain? It would help if you showed the two field definitions. Try using the admin/analysis page to see each step in the transformation, be sure to check the verbose checkbox. And examples of the input, and results (&debugQuery=on) would also be use

Re: JoinQuery and document score problem

2012-03-06 Thread Stefan Moises
Hi Martijn, thanks for your answer - unfortunately we need the JoinQuery for the main query, not only for the filters... Looks like we have to get the scoring for "query-time joins" working on our own then, maybe inspired by the "BlockJoin" Query (index-time join) functionality (which we canno

Re: How to limit the number of open searchers?

2012-03-06 Thread Li Li
what do u mean "programmatically"? modify codes of solr? becuase solr is not like lucene, it only provide http interfaces for its users other than java api if you want to modify solr, you can find codes in SolrCore private final LinkedList> _searchers = new LinkedList>(); and _searcher is current

Re: Building a resilient cluster

2012-03-06 Thread Darren Govoni
What I think was mentioned on this a bit ago is that the index stops working if one of the "nodes" goes down unless its a replica. You have 2 "nodes" running with numShards=2? Thus if one goes down the entire index is inoperable. In the future I'm hoping this changes such that the index cluster co

Re: Filter facet_fields with Solr similar to stopwords

2012-03-06 Thread Daniel Brügge
OK, I've found this posting from 2009: http://lucene.472066.n3.nabble.com/excluding-certain-terms-from-facet-counts-when-faceting-based-on-indexed-terms-of-a-field-td501104.html But this facet.field={!terms=WORDTOEXCLUDE}content approach also only shows me the counting of the word I want to exc

Re: solr out of memory

2012-03-06 Thread Daniel Brügge
Maybe the index is to big and you need to add more memory to the JVM via the -Xmx parameter. See also http://wiki.apache.org/solr/SolrPerformanceFactors#OutOfMemoryErrors Daniel On Tue, Mar 6, 2012 at 10:01 AM, C.Yunqin <345804...@qq.com> wrote: > sometimes when i search a simple word ,like "i

Filter facet_fields with Solr similar to stopwords

2012-03-06 Thread Daniel Brügge
Hi, I am using a solr.StopFilterFactory in a query filter for a text_general field (here: content). It works fine, when I query the field for the stopword, then I am getting no results. But I am also doing a facet.field=content call to get the words which are used in the text. What I am trying to

Re: JoinQuery and document score problem

2012-03-06 Thread Martijn v Groningen
Hi Stefan, The score isn't "moved" from the "from" side to the "to" side and as far as I know there isn't a way to configure the scoring of the joined documents. The Solr join query isn't a real join (like in sql) and should be used as filtering mechanism. The best way is to achieve that is to put

Apache Lucene Eurocon 2012

2012-03-06 Thread Vadim Kisselmann
Hi folks, where and when is the next Eurocon scheduled? I read something about denmark and autumn 2012(i don't know where *g*). Best regards and thanks Vadim