Re:how about another SolrIndexSearcher.numDocs method?

2010-11-19 Thread kafka0102
numDocs methods seem just for filterCache. So I just need use QueryResult search(QueryResult qr, QueryCommand cmd) by setting QueryCommand.len=0?I would try it. At 2010-11-19 15:49:31,kafka0102 kafka0...@163.com wrote: In my app,I want to search numdocs for some queries. I see SolrIndexSearcher

Re: Doubts regarding Multiple Keyword Search

2010-11-19 Thread Lance Norskog
The analysis stack for the text type includes the PorterStemmer. A 'stemmer' uses algorithms to trim similar words back to a base word. In this case, it removes 'ing' from the end of 'testing'. This means that 'test' and 'testing' are indexed exactly the same, and searching for one will find the

Re: simple production set up

2010-11-19 Thread Markus Jelsma
Please stay on the list. Anyway, it's a matter of not exposing certain request handlers to the public. If you have a master/slave set up, you can remove the update handlers from your public facing slave (or hide it behind HTTP auth in your proxy). The same goes for other defined request

Re: WordDelimiterFilterFactory + CamelCase query

2010-11-19 Thread Peter Karich
Hi, the final solution is explained here in context: http://mail-archives.apache.org/mod_mbox/lucene-dev/201011.mbox/%3caanlktimatgvplph_mgfbsughdoedc8tc2brrwxhid...@mail.gmail.com%3e /If you are using Solr branch_3x or trunk, you can turn this off, by setting autoGeneratePhraseQueries to

Issue with relevancy

2010-11-19 Thread sivaprasad
Hi, I configured search request handler as shown below. requestHandler name=standard class=solr.SearchHandler default=true !-- default values for query parameters -- lst name=defaults str name=echoParamsexplicit/str /requestHandler I am submitting the below query for search.

Re: Dismax is failing with json response writer

2010-11-19 Thread sivaprasad
The issue is solved.I replaced the solr core jar. Thanks Erick -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-is-failing-with-json-response-writer-tp1922170p1930382.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Issue with relevancy

2010-11-19 Thread Grant Ingersoll
On Nov 19, 2010, at 7:36 AM, sivaprasad wrote: Hi, I configured search request handler as shown below. requestHandler name=standard class=solr.SearchHandler default=true !-- default values for query parameters -- lst name=defaults str name=echoParamsexplicit/str

String field with lower case filter

2010-11-19 Thread sivaprasad
Hi, I am using a string filed with below configuration. fieldType name=cat_string class=solr.StrField sortMissingLast=true omitNorms=true analyzer tokenizer class=solr.KeywordTokenizerFactory/ filter class=solr.LowerCaseFilterFactory/ /analyzer /fieldType

Use of key in facets

2010-11-19 Thread Tim Jones
Hi, I'm curious about the use of the key option with regard to facets. I've been treating it as a way to alias fields and queries in order to simplify processing of result sets and generally make them more readable. However it seems that the alias is not respected when setting mincount, sort,

How to Transmit and Append Indexes

2010-11-19 Thread Bing Li
Hi, all, I am working on a distributed searching system. Now I have one server only. It has to crawl pages from the Web, generate indexes locally and respond users' queries. I think this is too busy for it to work smoothly. I plan to use two servers at at least. The jobs to crawl pages and

Re: Must require quote with single word token query?

2010-11-19 Thread Yonik Seeley
On Tue, Nov 16, 2010 at 10:28 PM, Chamnap Chhorn chamnapchh...@gmail.com wrote: I have one question related to single word token with dismax query. In order to be found I need to add the quote around the search query all the time. This is quite hard for me to do since it is part of full text

Re: Master/Slave High CPU Usage

2010-11-19 Thread Ofer Fort
That sounds like a great option, and it will also free some storage space on that sever (now each index is about 130GB). Other than the lock policy (we use single), any other things to look out to? Thanks ב-19 בנוב 2010, בשעה 05:30, Lance Norskog goks...@gmail.com כתב/ה: If they are on the same

Re: String field with lower case filter

2010-11-19 Thread Ahmet Arslan
But with above configuration i am not getting any results.Can anybody has idea. class=solr.StrField should be replaced with class=solr.TextField

RE: DataImportHandlerException for custom DIH Transformer

2010-11-19 Thread Peter Sturge
Hi, This problem is usually because your custom Transformer is in the solr/lib folder, when it needs to be in the webapps .war file (under WEB-INF/lib of course). Place your custom Transformer in a .jar in your .war and you should be good to go. Thanks, Peter Subject: RE:

Export Index Data.

2010-11-19 Thread Anderson vasconcelos
Hi Is possible to export one set of documents indexed in one solr server for do a sincronization with other solr server? Thank's

Is it fine to transmit indexes in this way?

2010-11-19 Thread Bing Li
Hi, all, Since I didn't find that Lucene presents updated indexes to us, may I transmit indexes in the following way? 1) One indexing machine, A, is busy with generating indexes; 2) After a certain time, the indexing process is terminated; 3) Then, the new indexes are transmitted to machines

Re: Export Index Data.

2010-11-19 Thread Gora Mohanty
On Fri, Nov 19, 2010 at 10:33 PM, Anderson vasconcelos anderson.v...@gmail.com wrote: Hi Is possible to export one set of documents indexed in one solr server for do a sincronization with other solr server? Yes. The easiest way probably is to set up replication:

Re: Is it fine to transmit indexes in this way?

2010-11-19 Thread Gora Mohanty
On Fri, Nov 19, 2010 at 10:53 PM, Bing Li lbl...@gmail.com wrote: Hi, all, Since I didn't find that Lucene presents updated indexes to us, may I transmit indexes in the following way? 1) One indexing machine, A, is busy with generating indexes; 2) After a certain time, the indexing process

Re: Is it fine to transmit indexes in this way?

2010-11-19 Thread Bing Li
Thanks so much, Gora! What do you mean by appending? If you mean adding to an existing index (on reindexing, this would normally mean an update for an existing Solr document ID, and a create for a new Solr document ID), the best way probably is not to delete the index on the master server (what

Re: Is it fine to transmit indexes in this way?

2010-11-19 Thread Gora Mohanty
On Fri, Nov 19, 2010 at 11:39 PM, Bing Li lbl...@gmail.com wrote: [...] When updates are replicated to slave servers, it is supposed that the updates are merged with the existing indexes and readings on them can be done concurrently. If so, the queries must be responded instantly. That's what

Re: How to Transmit and Append Indexes

2010-11-19 Thread Erick Erickson
You haven't said what version of Solr you're using, but you're asking about replication, which is built-in. See: http://wiki.apache.org/solr/SolrReplication And no, your slave doesn't block while the update is happening, and it automatically switches to the updated index upon successful

Re: How to Transmit and Append Indexes

2010-11-19 Thread Bing Li
Dear Erick, Thanks so much for your help! I am new in Solr. So I have no idea about the version. But I wonder what are the differences between Solr and Hadoop? It seems that Solr has done the same as what Hadoop promises. Best, Bing On Sat, Nov 20, 2010 at 2:28 AM, Erick Erickson

Re: Meaning of avgTimePerRequest avgRequestsPerSecond in SOLR stats page

2010-11-19 Thread Shanmugavel SRD
Thanks Erick. -- View this message in context: http://lucene.472066.n3.nabble.com/Meaning-of-avgTimePerRequest-avgRequestsPerSecond-in-SOLR-stats-page-tp1922692p1932275.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to Transmit and Append Indexes

2010-11-19 Thread Gora Mohanty
On Sat, Nov 20, 2010 at 12:05 AM, Bing Li lbl...@gmail.com wrote: Dear Erick, Thanks so much for your help! I am new in Solr. So I have no idea about the version. The solr/admin/registry.jsp URL on your local Solr installation should show you the version at the top. But I wonder what are

Re: How to Transmit and Append Indexes

2010-11-19 Thread Bing Li
Hi, Gora, No, I really wonder if Solr is based on Hadoop? Hadoop is efficient when using on search engines since it is suitable to the write-once-read-many model. After reading your emails, it looks like Solr's distributed file system does the same thing. Both of them are good for searching

Re: How to Transmit and Append Indexes

2010-11-19 Thread Gora Mohanty
On Sat, Nov 20, 2010 at 12:39 AM, Bing Li lbl...@gmail.com wrote: Hi, Gora, No, I really wonder if Solr is based on Hadoop? As far as I know, no it it isn't. Hadoop is efficient when using on search engines since it is suitable to the write-once-read-many model. After reading your emails,

Re: Dismax - Boosting

2010-11-19 Thread Solr User
Hi Ahmet, The below is my previous configuration which use to work correctly. searchComponent name=spellcheck class=solr.SpellCheckComponent str name=queryAnalyzerFieldTypetextSpell/str lst name=spellchecker str name=namedefault/str str name=fieldsearchFields/str str

Need Middleware between search client and solr?

2010-11-19 Thread cyang2010
Hi, I am new to the lucene/solr. I have a very general question, and hope to hear your recommendation. Do you need a middleware/module between your search client and solr server? The response message is very solr specific. Do you need to translate it to application object model and return

Re: DIH full-import failure, no real error message

2010-11-19 Thread Erik Fäßler
Hello Erick, I guess I'm the one asking for pardon - but sure not you! It seems, you're first guess could already be the correct one. Disc space IS kind of short and I believe it could have run out; since Solr is performing a rollback after the failure, I didn't notice (beside the fact that

Re: Need Middleware between search client and solr?

2010-11-19 Thread Gora Mohanty
On Sat, Nov 20, 2010 at 2:28 AM, cyang2010 ysxsu...@hotmail.com wrote: [...] Do you need a middleware/module between your search client and solr server? The response message is very solr specific.   Do you need to translate it to application object model and return back to search client?   In

Re: Need Middleware between search client and solr?

2010-11-19 Thread Dan Lynn
You might be able to skip on a front-end to solr by making extensive use of XSL to format the results, but there are several other arguments putting code in front of solr (e.g. saved searches, custom sorting, result-level embedded actions, etc..) Cheers, Dan On 11/19/2010 01:58 PM, cyang2010

Re: Per field facet limit

2010-11-19 Thread Chris Hostetter
: The wiki on facet.limit : (http://wiki.apache.org/solr/SimpleFacetParameters#facet.limit) says : This parameter can be specified on a per field basis to indicate a : separate limit for certain fields. But it is not specified how to : specify a specific field. How do you do this? it's explained

Re: DIH full-import failure, no real error message

2010-11-19 Thread Chris Hostetter
: Subject: DIH full-import failure, no real error message : References: aanlktinqsw22n0vj7at3nbx4=ocmdesjq=q0y+rbp...@mail.gmail.com : In-Reply-To: aanlktinqsw22n0vj7at3nbx4=ocmdesjq=q0y+rbp...@mail.gmail.com http://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When

Re: Dismax - Boosting

2010-11-19 Thread Ahmet Arslan
The below is my previous configuration which use to work correctly. searchComponent name=spellcheck class=solr.SpellCheckComponent str name=queryAnalyzerFieldTypetextSpell/str lst name=spellchecker   str name=namedefault/str   str name=fieldsearchFields/str   str

Re: DIH full-import failure, no real error message

2010-11-19 Thread Erik Fäßler
Yes, I noticed just after sending the message. My apologies! Best, Erik Am 20.11.2010 um 00:32 schrieb Chris Hostetter hossman_luc...@fucit.org: : Subject: DIH full-import failure, no real error message : References: aanlktinqsw22n0vj7at3nbx4=ocmdesjq=q0y+rbp...@mail.gmail.com :

occasional exception

2010-11-19 Thread j...@nuatech.net
Hi, I setup a Solr infrastructure a couple of months ago. So far the system has worked well but I am occasionally getting stuck in loops where I keep getting 500's returned for commits. my Tomcat Catalina logs on the Solr master show the following issue: Nov 14, 2010 2:41:46 AM

Re: Must require quote with single word token query?

2010-11-19 Thread Chamnap Chhorn
Wow, i never know this syntax before. What's that called? On 11/19/10, Yonik Seeley yo...@lucidimagination.com wrote: On Tue, Nov 16, 2010 at 10:28 PM, Chamnap Chhorn chamnapchh...@gmail.com wrote: I have one question related to single word token with dismax query. In order to be found I

Re: Must require quote with single word token query?

2010-11-19 Thread Yonik Seeley
On Fri, Nov 19, 2010 at 9:41 PM, Chamnap Chhorn chamnapchh...@gmail.com wrote: Wow, i never know this syntax before. What's that called? I dubbed it local params since it adds local info to a parameter (think extra metadata, like XML attributes on an element).

Re: How to limit result rows by field types?

2010-11-19 Thread Peter Wang
Erick Erickson erickerick...@gmail.com writes: Thanks for your reply. I failed incorporate the IKAnalyzer[1] into solr-trunk, so I am now using solr 1.4.1 + field collapsing patch[2]. It works fine. [1] http://code.google.com/p/ik-analyzer/ [2] https://issues.apache.org/jira/browse/SOLR-236