How to handle multiple application?

2008-03-31 Thread Bhavin Pandya
I have configured solr instance for one of my application in which there is one master server and 3 slave server. I want to add one more application in same solr instance ? is it possible ? or i need to run multiple instance of solr. please help. Bhavin pandya Software engineer, Rediff.com Ind

Re: Setting a Threshold of a sortable field to filter the result?

2008-03-31 Thread Vinci
Hi, One more thing: which numerical data type I should use, sfloat or float, fot the fq parameter? Thank you, Vinci hossman wrote: > > : > : How can I set a threshold value of a field so that I can filter the > result > : which is lower than the threshold? By the schema.xml or set by the >

Re: Indexing a word in url

2008-03-31 Thread Vinci
Hi, Thank you for your reply. Actually I want to use anything that is not alphabet or digit to be the separator - anything between them will be a word (so that I can use the URL fragment to see what is indexed about this site)...any suggestion? Thank you, Vinci Mike Klaas wrote: > > > On 31-

stored and indexed in schema

2008-03-31 Thread Vinci
Hi, I would like to ask, if I set a field to be indexed but not stored, I can retrieved the document but cannot retrieve this field? If I have large field that I want to index but I am not suppose to show them to user (The origin content stored in another processed document where I am using anoth

Re: Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread Vinci
hi, You need to give us some example...while you should ask in the tomcat user group of how tomcat/apache dealing with POST request as ryan said they go to the same loop. Thank you, Vinci jnagro wrote: > > I appreciate the response. We're running tomcat/apache at the moment. All > of these qu

Re: Setting a Threshold of a sortable field to filter the result?

2008-03-31 Thread Chris Hostetter
: : How can I set a threshold value of a field so that I can filter the result : which is lower than the threshold? By the schema.xml or set by the query? fq=your_field_name:[* TO your_max_value] or fq=your_field_name:[your_min_value TO *] depending on wether you want a minimum or maximum filt

RE: Highlight - get terms used by lucene

2008-03-31 Thread Chris Hostetter
: Solr returns the max score and the score per document. : This means that the best hit always is 100% which is not always what you : want because the article itself could still be quite irrelevant... Solr doesn't give you a percentage, and there's no reason to divide a doc's scroe by maxScore

Re: Is number of stored fields affects query performance?

2008-03-31 Thread Mike Klaas
On 31-Mar-08, at 6:57 AM, Evgeniy Strokin wrote: I have two questions related to the subject: 1. If I have 100 fields in my document, all indexed. Will my queries run slower if I store all 100 fields or just 10? Depends on that total size of the stored fields. Really large stored documen

Re: Indexing a word in url

2008-03-31 Thread Mike Klaas
On 31-Mar-08, at 10:50 AM, Vinci wrote: Hi all, I would like to ask, if I want to index word in a URL, which data type and parser should I use? Depends on how you want to search it. I use WordDelimiterFilter with parts generation on only (no catenation), and an additiona stopwords li

Re: synonyms

2008-03-31 Thread Chris Hostetter
: We've implemented a PortugueseSteemer. We want to let it available for : everyone. Where can I commit it ? If it's just a Stemmer that has no Solr dependencies (or a Stemmer built as a TokenFilter) the best thing to do is contribute it to the Lucene-Java project... http://wiki.apache.org/luc

Re: Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread Erik Hatcher
It's probably the HTTP caching :) Catches me off guard often too when hitting Solr from a browser. Shift-refresh or something like that to force it to GET without caching headers sent. There should really be no difference in speed between GET and POST to Solr all caching aside.

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Ryan McKinley
On Mar 31, 2008, at 2:43 PM, Chris Hostetter wrote: : > 2. Augment the documents with a field value -- this is a bit more : > complex and runs the risk of name collisions with fields in your : > documents. You can pull the docLIst out from the response and add : > fields to each document. : :

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Chris Hostetter
: > 2. Augment the documents with a field value -- this is a bit more : > complex and runs the risk of name collisions with fields in your : > documents. You can pull the docLIst out from the response and add : > fields to each document. : : this seems more appropriate, : I'm okay, to resolve na

Re: Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread jnagro
I appreciate the response. We're running tomcat/apache at the moment. All of these questions are good, however it doesn't really explain why this would be happening so suddenly and why there is such a wide difference between POST and GET. Do you have any other thoughts that i could investigate? So

Re: Search fail if copyField absent?(+ Jetty Question)

2008-03-31 Thread Chris Hostetter
: I doesn't change other thing about field in default schema, so I think you : are correct...Then here is one question: Can I use parameter to change the : search field when query come in? You can change the query string, or you can change the "df" dfualt search field, or if you are using hte di

Re: schema version bug

2008-03-31 Thread Chris Hostetter
: Hello - I stumbled upon a odd bug, or what appears to be a bug, today. : I have been using my own custom version numbers for my schema and tried : to change the version number from 0.8 to 0.8.1 which rendered solr : useless yielding a schema parsing error. I then tried to change it to : 0.

Re: Solr interprets UTF-8 as ISO-8859-1

2008-03-31 Thread Uwe Klosa
You should set uriEncoding="UTF-8" in your application server. For tomcat you can do that in the server.xml. For Glassfish you have to create a sun-web.xml containing the according parameters. Yoy r application server should provide a similar mechanism. Uwe On Mon, Mar 31, 2008 at 4:32 PM, Daniel

Indexing a word in url

2008-03-31 Thread Vinci
Hi all, I would like to ask, if I want to index word in a URL, which data type and parser should I use? Thank you, Vinci -- View this message in context: http://www.nabble.com/Indexing-a-word-in-url-tp16397739p16397739.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread Vinci
Hi, I don't use POST request for query, but I think you should check what is actually your browser sent by firebug first...Also, it will be more helpful if you can tell us how long of your query are, and some information of your query server, etc Quick comment: POST usually need longer time to

schema version bug

2008-03-31 Thread Andrew Nagy
Hello - I stumbled upon a odd bug, or what appears to be a bug, today. I have been using my own custom version numbers for my schema and tried to change the version number from 0.8 to 0.8.1 which rendered solr useless yielding a schema parsing error. I then tried to change it to 0.8-1 with the

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Siegfried Goeschl
Hi folks, I had to solve a similiar problem with SOLR 1.2 and used a custom org.apache.solr.request.QueryResponseWriter - you can trigger your custom response writer using SOLR admin but it is not an elegant solution (I think the XMWriter is a final class therefore some copy&waste code) Che

federated search - Carrot Clustering Engine

2008-03-31 Thread Grégoire Neuville
Hi, I've recently posted a message on this list about the ways of implementing a 'federated search' (a search on multiple indices) whith Solr. Starting from the answers I got plus informations from the mailing list archives and the Solr Wiki, I've planned to test three configurations : - one sole

Re: Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread Ryan McKinley
what app container are you running on? (jetty? tomcat? resin...) what version of solr are you running? In solr -- the request goes through all the same hoops if it is GET or POST, so I suspect it is something to do with the container... but honestly don't know. ryan On Mar 31, 2008, at

Re: Solr interprets UTF-8 as ISO-8859-1

2008-03-31 Thread Siegfried Goeschl
Hi Daniel, the following topic might help (at least it did the trick for me using german chararcters) http://wiki.apache.org/solr/FAQ - Why don't International Characters Work? So I wrote the following servlet (taken from Wiki/mailing list) import org.apache.solr.servlet.SolrDispatchFilter;

Re: Solr interprets UTF-8 as ISO-8859-1

2008-03-31 Thread Sean Timm
Send the URL with the å character URL encoded as %C3%A5. That is the UTF-8 URL encoding. http://myserver:8080/solrproducts/select/?q=all_SV:ljusbl%C3%A5+status:online&fl=id%2Cartno%2Ctitle_SV%2CtitleSort_SV%2Cdescription_SV%2C&sort=titleSort_SV+asc,id+asc&start=0&q.op=AND&rows=25 -Sean Danie

Solr interprets UTF-8 as ISO-8859-1

2008-03-31 Thread Daniel Löfquist
Hello, We're building a webapplication that uses Solr for searching and I've come upon a problem that I can't seem to get my head around. We have a servlet that accepts input via XML-RPC and based on that input constructs the correct URL to perform a search with the Solr-servlet. I know that th

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Umar Shah
On Mon, Mar 31, 2008 at 7:38 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: > Two approaches: > 1. make a map and add it to the response: > rb.rsp.add( "mystuff", mymap ); > I tried using both Map/ NamedList it appends to the results I have to attach each document with corresponding field. >

Solr GET requests return quickly, POST requests take very long, why?

2008-03-31 Thread jnagro
Hello, Earlier this week we started experiencing a strange situation with our Solr installation. We have a home-grown query tool which started to timeout (we had it set low at 2seconds which was always more than enough). In doing some rather in-depth investigation its appears that Solr is process

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Ryan McKinley
Two approaches: 1. make a map and add it to the response: rb.rsp.add( "mystuff", mymap ); 2. Augment the documents with a field value -- this is a bit more complex and runs the risk of name collisions with fields in your documents. You can pull the docLIst out from the response and add f

Is number of stored fields affects query performance?

2008-03-31 Thread Evgeniy Strokin
I have two questions related to the subject: 1. If I have 100 fields in my document, all indexed. Will my queries run slower if I store all 100 fields or just 10? 2. If I have 100 fields in my documents, all stored. Will my queries run slower if I index all 100 fields or just 10? Thanks in

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Umar Shah
thanks ryan for the reply. I have looked at the prepare and process methods in SearchComponents(Query, Filter etc). I'm using all the default components to prepare and then process the reults. and then prepare a custom field after iterating through all the documents in the result set. After having

Re: Can We append a field to the response that is not in the index but computed at runtime.

2008-03-31 Thread Ryan McKinley
Without writing any custom code, no. If you write a "SearchComponent" http://wiki.apache.org/solr/SearchComponent -- you can programatically change the response at runtime. ryan On Mar 28, 2008, at 3:38 AM, Umar Shah wrote: Hi, I wanted to know whether we can append a field (Fdyn say) t

Re: Message = "The remote server returned an error: (500) Internal Server Error."

2008-03-31 Thread Ryan McKinley
Are you using jetty? I forget the JIRA issue to point you too, but (assuming it is jetty), this has something to do with the war file extracting itself again. The solution is to change the directory it is configured to use. The default jetty settings included in the nightly builds should a

Re: search for non empty field

2008-03-31 Thread Matt Mitchell
Thanks Erik. I think this is the thread here: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200709.mbox/[EMAIL PROTECTED] Matt On Sun, Mar 30, 2008 at 9:50 PM, Erik Hatcher <[EMAIL PROTECTED]> wrote: > Documents with a particular field can be matched using: > > field:[* TO *]

Re: sorting on aggregate averages

2008-03-31 Thread Umar Shah
Hi, it took me some but I implemented the required function by developing a custom plugin for our specific example. However Now I have another issue: I am computing a sorted rank list and returning a slice (for pagination) but have to recompute the result for each request, although the actual q p

Re: synonyms

2008-03-31 Thread Lucas F. A. Teixeira
Hello All, We've implemented a PortugueseSteemer. We want to let it available for everyone. Where can I commit it ? []s, Lucas Leonardo Santagada wrote: On 28/03/2008, at 16:28, Lance Norskog wrote: Lucas- Your examples are Portuguese and Spanish. You might find a Spanish-language stem