RE: Does SOLR supports multiple instances within the same webapplication?

2007-11-13 Thread Dilip.TS
Hi, I am using SOLR 1.2 stable build currently , and this version does not have this feature (Support for Multiple SOLR cores). How do I get this feature? I tried to open the .patch file but I could not understand. I was looking into the link http://svn.apache.org/viewvc/lucene/solr/ for the

- I/O exception (java.net.BindException) caught when processing request: Address already in use: connect while updating

2007-11-13 Thread Daniele Salvatico
Hi all, i have a Solr instance running under tomcat 5.5. My application uses a java servlet to handle data. I have a problem with "add-update" process: at the first run the add process is ok and very fast . At this first run i add around 2.000 docs. Then i commit and all is ok. The problem is t

Re: Does SOLR supports multiple instances within the same webapplication?

2007-11-13 Thread Walter Ferrara
take a look @: http://lucene.apache.org/solr/version_control.html#Anonymous+Access+%28read-only%29 and http://www.apache.org/dev/version-control.html#anon-svn You may want to use an IDE (eclipse/netbeans/...) to svn there (look for "trunk" dir); this way you could easily download the trunk and com

Re: - I/O exception (java.net.BindException) caught when processing request: Address already in use: connect while updating

2007-11-13 Thread Ian Lea
Daniele >From the stack trace it looks like the java.net.BindException is happening when you are calling HttpClient code. Searching google for "java.net.BindException httpclient" finds various hits. Maybe one of those will help. I don't think this has anything directly to do with solr or tomca

Re: - I/O exception (java.net.BindException) caught when processing request: Address already in use: connect while updating

2007-11-13 Thread Daniele Salvatico
Thanks Ian, I'll search for HttpClient related problem. Daniele Ian Lea wrote: > > Daniele > > > From the stack trace it looks like the java.net.BindException is > happening when you are calling HttpClient code. Searching google for > "java.net.BindException httpclient" finds various hits

solr internals

2007-11-13 Thread Dwarak R
Hi All When a word document or excel is sent to solr, I can see my indexes are getting updated [via UpdateRichDocuments patch]. I wish to know what really happens behind the screen. Can anyone explain internals of solr on adding word documents ?. How do we fix fields for word doc which is 5 - 1

Re: PriceJunkie.com using solr!

2007-11-13 Thread William Silva
Hi Mike, I´m checking out www.pricejunkie.com and Í would like to know how do you group the products and find the price range. Is it a batch process ? Are you using MoreLikeThis to do it ? Thanks, William. >ahait is wonderful. >2007/5/24, Mike Austin <[EMAIL PROTECTED]>: >Just one. >-

Solr/bin script - Solaris bash version?

2007-11-13 Thread Jae Joo
Hi, Is there Solaris bash based script available? The couple of command is not working, and wondering any available scripts I can use before I update it. For ex. snapshooter, snappuller, snapinstaller Thanks, Jae

snapshot files

2007-11-13 Thread Jae Joo
Hi, I have successfully built generated the snalshot files but have a question. Does each snapshot file has all files in the index directory? Here is the file list in the index _0.fdt_0.fnm_0.nrm_0.tii_1.fdt _1.fnm_1.nrm_1.tiisegments.gen _0

two solr instances - index and commit

2007-11-13 Thread Jae Joo
Hi, I have two solr instance running under different tomcat environment. One solr instance is for indexing and would like to commit to the other solr instance. This is what I tried, but failed. using post.sh (without commit), the docs are indexed in solr-1 instance. After indexed, call commit co

LuceneInAction.zip?

2007-11-13 Thread David Neubert
I purchased Lucene In Action (really great book by the way, one of the best technical books (if not the best) that I can ever read. Its making me embarrassed about some of the questions I have already posted :) That said, here is another one -- I found LuceneInAction.zip on www.lucenebook.com

Multiple uniqueKey fields

2007-11-13 Thread Dave C .
Hello, I just started using Solr and have a question regarding unique keys. Is it somehow possible to specify more than 1 unique key? The problem is, some of my indexed data has one particular unique field, while other data does not have this field at all and uses another field for unique-ness. An

Re: LuceneInAction.zip?

2007-11-13 Thread Mike Klaas
On 13-Nov-07, at 9:08 AM, David Neubert wrote: I purchased Lucene In Action (really great book by the way, one of the best technical books (if not the best) that I can ever read. Its making me embarrassed about some of the questions I have already posted :) That said, here is another one

RE: Exception in SOLR when querying for fields of type string

2007-11-13 Thread Stu Hood
The first question is, what version of Solr are you using? Thanks, Stu -Original Message- From: Kasi Sankaralingam <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2007 2:27pm To: solr-user@lucene.apache.org Subject: Exception in SOLR when querying for fields of type string Hi, I am ru

Re: Faceting over limited result set

2007-11-13 Thread Mike Klaas
On 12-Nov-07, at 8:03 AM, Chris Hostetter wrote: if what you are interested in is stats on the first N docs according to a specific sort (score or otherwise) then you could write a custom request handler that executed a search with a limit of N, got the DocList, iterated over it to build a

RE: Multiple uniqueKey fields

2007-11-13 Thread Will Johnson
key = sometimesUniqueField + "_" + otherTimesUniqueuField; If one of them is always guaranteed to be unique you should be fine. - will -Original Message- From: Dave C. [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 2:07 PM To: solr-user@lucene.apache.org Subject: Multiple un

Index/Query question

2007-11-13 Thread Marc Jones
Hello all, I am in the process of learning Solr (and the underlying Lucene engine). I have been unable to successfully implement the following scenario, so I was hoping someone on the list might have some insight. - I want to index data values for different data types (fields) that are c

RE: Multiple uniqueKey fields

2007-11-13 Thread Dave C .
Thanks, I thought of this shortly after I posted the question! - david > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: RE: Multiple uniqueKey fields > Date: Tue, 13 Nov 2007 15:37:46 -0500 > > key = sometimesUniqueField + "_" + otherTimesUniqueuField; > > If one of them

Solr java tutorial

2007-11-13 Thread Dave C .
Hi everyone, My next question is: is there a beginner's tutorial on how to programmatically query solr? I have seen some users' do things like: SolrServer server = getSolrServer(); SolrQuery solrQuery = new SolrQuery(); solrQuery.setQuery(..); QueryResponse rs

RE: Exception in SOLR when querying for fields of type string

2007-11-13 Thread Kasi Sankaralingam
I am using the latest version of solr (1.2) -Original Message- From: Stu Hood [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 11:32 AM To: solr-user@lucene.apache.org Subject: RE: Exception in SOLR when querying for fields of type string The first question is, what version of S

Re: Solr java tutorial

2007-11-13 Thread Ryan McKinley
Not yet, but there should be! Currently people learn it from looking at the source and tests. I started to add something to: http://wiki.apache.org/solr/Solrj it (obviously) still needs work. If you are using eclipse (or similar), after typing "solrQuery." you should get a drop down of a

Re: Exception in SOLR when querying for fields of type string

2007-11-13 Thread Ryan McKinley
Can you post the full exception? b) Do a query in the SOLR admin tool title_s: photo book Do you have a space after the ':'? q=title_s: photo book I expect that would fail (though null pointer is not a very nice error) q=title_s:"photo book" should work fine: title_s:photo book wou

Re: Multiple uniqueKey fields

2007-11-13 Thread Walter Underwood
I had a similar problem with three sources of keys that have collisions between the values. I prefix a single letter for each source. movies: M12345 people: P12345 and so on. wunder On 11/13/07 12:37 PM, "Will Johnson" <[EMAIL PROTECTED]> wrote: > key = sometimesUniqueField + "_" + otherTimesU

RE: Exception in SOLR when querying for fields of type string

2007-11-13 Thread Kasi Sankaralingam
It is not tokenized, it is a string field, so will it still match "photo" for field 'title_s' and "book" for the default field? Here is the exception stack trace: HTTP Status 500 - null java.lang.NullPointerException at org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:73

RE: Solr java tutorial

2007-11-13 Thread Dave C .
I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been released yet)? It doesn't seem to be found in Solr 1.2 which I am using. please enlighten.. - David > Date: Tue, 13 Nov 2007 17:21:13 -0500 > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: Re: Solr java

Re: Solr java tutorial

2007-11-13 Thread Ryan McKinley
Dave C. wrote: I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been released yet)? It doesn't seem to be found in Solr 1.2 which I am using. please enlighten.. correct. solrj is in solr-1.3-dev -- to use it you need to use a nightly build. It has not been officially releas

RE: Solr java tutorial

2007-11-13 Thread Dave C .
Ah... :( Is there a timeline for the 1.3 release? - david > Date: Tue, 13 Nov 2007 18:33:01 -0500 > From: [EMAIL PROTECTED] > To: solr-user@lucene.apache.org > Subject: Re: Solr java tutorial > > Dave C. wrote: > > I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been > > relea

RE: two solr instances - index and commit

2007-11-13 Thread Kasi Sankaralingam
This works, the only thing you need to be aware of is the NFS problem if you are running in a distributed environment sharing a NFS partition. a) Index and commit on instance (Typically partitioned as an index server) b) Issue a commit on the search server (like a read only mode) Things to watch

Re: Faceting over limited result set

2007-11-13 Thread Pieter Berkel
On Nov 14, 2007 6:44 AM, Mike Klaas <[EMAIL PROTECTED]> wrote: > > An implementation might look like: > > DocList superlist; > int facetDocLimit = params.getInt(DMP.FACET_DOCLIMIT, -1); > if(facetDocLimit > 0 && facetDocLimit != req.getLimit()) { >superlist =

Re: Solr java tutorial

2007-11-13 Thread Mike Klaas
Not really--there have been a few threads on this topic recently. Perhaps in a couple months? It may depend on the timing of the lucene release. -MIke On 13-Nov-07, at 3:41 PM, Dave C. wrote: Ah... :( Is there a timeline for the 1.3 release? - david Date: Tue, 13 Nov 2007 18:33:01 -05

Re: Exception in SOLR when querying for fields of type string

2007-11-13 Thread Yonik Seeley
On Nov 13, 2007 6:23 PM, Kasi Sankaralingam <[EMAIL PROTECTED]> wrote: > It is not tokenized, it is a string field, so will it still match > "photo" for field 'title_s' and "book" for the default field? Yes, because the query parser splits up things by whitespace before analyzers are even applied.

Embedded Solr

2007-11-13 Thread Dave C .
Hello again, This is a horribly newbie question, but what exactly is meant by "embedded solr"? Thanks a lot, David _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/

Re: Embedded Solr

2007-11-13 Thread Ryan McKinley
Standard solr is a .war file that you install on your system and run within a servlet container (jetty, resin, tomcat, etc) "embedded" solr refers to running solr without the servlet container. ryan Dave C. wrote: Hello again, This is a horribly newbie question, but what exactly is meant by

Re: Query and heap Size

2007-11-13 Thread Mike Klaas
On 12-Nov-07, at 6:02 AM, Jae Joo wrote: In my system, the heap size (old generation) keeps growing up caused by heavy traffic. I have adjusted the size of young generation, but it does not work well. Does anyone have any recommendation regarding this issue? - Solr configuration and/or web

Re: Faceting over limited result set

2007-11-13 Thread Mike Klaas
On 13-Nov-07, at 4:44 PM, Pieter Berkel wrote: On Nov 14, 2007 6:44 AM, Mike Klaas <[EMAIL PROTECTED]> wrote: Thanks Mike, that looks like a good place to start. While I really can't think of any practical use for limiting the size of DocSet other than simple faceting, the new search component

solr - other document formats

2007-11-13 Thread Dwarak R
Hey All I read an article on http://www.xml.com/lpt/a/1668 Its states that "As we've seen, the XML format used by Solr for indexing is quite simple. Extracting the relevant metadata to create these XML documents from the many formats floating around, however, is another story. Fortunately, Lu