Re: SolrJ - SolrServer#commit() doesn't return

2008-08-26 Thread Otis Gospodnetic
Hm, it's hard to tell from here. Have you checked various logs for "Exception", "ERROR", and such? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Machisuji <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Tuesday, August 26,

Re: How does Solr search when a field is not specified?

2008-08-26 Thread Otis Gospodnetic
Jake, Yes, that field would have to be some kind of an analyzed field (e.g. text), not string if you wanted that query to match "Jake is Testing" input. There are no built-in Lucene or Solr-specific limits on field lengths. There is one parameter called maxFieldLength in Solr's solrconfig

Re: Sorting and also looking at stored fields

2008-08-26 Thread Shalin Shekhar Mangar
On Wed, Aug 27, 2008 at 5:16 AM, jennyv <[EMAIL PROTECTED]> wrote: > Thanks! I've tried that but it won't return any of the fields aside > from pki, id, and score. I've tried the wildcard and I've also tried > providing the names of the fields (e.g., text_for_solr_t, which is the > name of the mai

Re: Sorting and also looking at stored fields

2008-08-26 Thread Stephen Weiss
Are you sure you have the fields set to store in your schema? You said before you know they're being saved because you can search against them... While any field can be searched against which is set to indexed="true", only fields set to stored="true" can actually be retrieved for further d

Re: Weighting the Licene score

2008-08-26 Thread s d
But function query doesn't give access to the SOLR score, only to fields in the index, no ? thx On Tue, Aug 26, 2008 at 2:02 PM, Otis Gospodnetic < [EMAIL PROTECTED]> wrote: > I think the easiest approach might be making use of Lucene's function > query. > > > Otis > -- > Sematext -- http://semat

Re: Sorting and also looking at stored fields

2008-08-26 Thread jennyv
On Tue, Aug 26, 2008 at 3:46 PM, Stephen Weiss <[EMAIL PROTECTED]> wrote: > I do this by specifying them in the query string: > > fl=field_name1,field_name2,etc > > See here: > http://www.ibm.com/developerworks/java/library/j-solr1/#searching (table 2) Thanks! I've tried that but it won't return a

Re: Sorting and also looking at stored fields

2008-08-26 Thread Stephen Weiss
I do this by specifying them in the query string: fl=field_name1,field_name2,etc See here: http://www.ibm.com/developerworks/java/library/j-solr1/#searching (table 2) -- Steve On Aug 26, 2008, at 6:36 PM, jennyv wrote: Ack. Reading the FAQ would help. :-) I've fixed the sorting issue by u

Re: Sorting and also looking at stored fields

2008-08-26 Thread jennyv
Ack. Reading the FAQ would help. :-) I've fixed the sorting issue by using a different analyzer. However, I'd love to get an answer on whether there's a way to query solr to include more fields in the results. Thanks!

Re: Weighting the Licene score

2008-08-26 Thread Otis Gospodnetic
I think the easiest approach might be making use of Lucene's function query. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: s d <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Tuesday, August 26, 2008 1:55:38 PM > Subject: We

Sorting and also looking at stored fields

2008-08-26 Thread jennyv
I'm having trouble with sorting -- things don't return in the order that I think they should. To look into this problem further, I thought I'd query solr and try to display the data field in question. I tried forming my own URL but solr wasn't returning my field. Then I tried the admin form in case

How does Solr search when a field is not specified?

2008-08-26 Thread Jake Conk
Hello, I was wondering how does Solr search when a field is not specified, just a query? Say for example I got the following: ?q="Jake" AND "Test" I have a mixture of integer, string, and text columns. Some indexed, some stored, and some string fields copied to text fields. Say I have a string

Re: Adding a field?

2008-08-26 Thread Smiley, David W. (DSMILEY)
You can modify the schema file but you'll need to reload Solr for Solr to see be aware of it. You can use multiCore to eliminate downtime. But at this point you obviously don't have any data in it so I can only assume you'll want to reload everything -- what else would you expect? This doesn't n

Re: Adding a field?

2008-08-26 Thread Brian Whitman
On Aug 26, 2008, at 3:09 PM, Jon Drukman wrote: Is there a way to add a field to an existing index without stopping the server, deleting the index, and reloading every document from scratch? You can add a field to the schema at any time without adversely affecting the rest of the index

Adding a field?

2008-08-26 Thread Jon Drukman
Is there a way to add a field to an existing index without stopping the server, deleting the index, and reloading every document from scratch? -jsd-

Re: in a RequestHandler's init, how to get solr data dir?

2008-08-26 Thread Brian Whitman
On Aug 26, 2008, at 12:24 PM, Shalin Shekhar Mangar wrote: Hi Brian, You can implement the SolrCoreAware interface which will give you access to the SolrCore object through the SolrCoreAware#inform method you will need to implement. It is called after the init method. Shalin, that worke

Re: Querying Greater Than and Less Than

2008-08-26 Thread mike topper
you can also use queries like field:[* to Z] or field:[Z TO *] -Mike Jake Conk wrote: Hello, I was trying to figure out how to query ranges greater than and less than. The closest solution I could find was using the range format: field:[x TO z] While this solution works for querying greate

Querying Greater Than and Less Than

2008-08-26 Thread Jake Conk
Hello, I was trying to figure out how to query ranges greater than and less than. The closest solution I could find was using the range format: field:[x TO z] While this solution works for querying greater than items how would I query all items less than 10 assuming I have some items that have a

Weighting the Licene score

2008-08-26 Thread s d
I want to weighted average the Lucene score with an additional score i have, i.e. (W1 * Lucene score + W2 * Other score) / (W1 + W2) . What is the easiest way to do this? Also, is the Lucene score normalized. Thanks,

Re: SolrJ - SolrServer#commit() doesn't return

2008-08-26 Thread Alexander Ramos Jardim
2008/8/26 Machisuji <[EMAIL PROTECTED]> > > No, I just add the documents, call commit() and wait for the response. > > Now I made a workaround where I put each commit() in a separate thread, > which I wait for (Thread#join(long)) and recommit the documents if > the Thread didn't end within a given

Re: SolrJ - SolrServer#commit() doesn't return

2008-08-26 Thread Machisuji
No, I just add the documents, call commit() and wait for the response. Now I made a workaround where I put each commit() in a separate thread, which I wait for (Thread#join(long)) and recommit the documents if the Thread didn't end within a given amount of time. This way I am able to commit all d

Re: in a RequestHandler's init, how to get solr data dir?

2008-08-26 Thread Shalin Shekhar Mangar
Hi Brian, You can implement the SolrCoreAware interface which will give you access to the SolrCore object through the SolrCoreAware#inform method you will need to implement. It is called after the init method. On Tue, Aug 26, 2008 at 7:06 PM, Brian Whitman <[EMAIL PROTECTED]>wrote: > I want to b

Re: SolrJ - SolrServer#commit() doesn't return

2008-08-26 Thread Alexander Ramos Jardim
Are you using any postCommit postOptimize eventListener? I got some problems using them, that I run on scenario where the commit/optimize thread never ended. 2008/8/26 Machisuji <[EMAIL PROTECTED]> > > Hey. > > I've been working with SolR for a few days now and as long as I haven't > worked with

RE: Less aggressive stemmer?

2008-08-26 Thread Wagner,Harry
OK. I put it here http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters/Kstem and linked it from the stemming paragraph found here: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters Cheers! harry -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent:

in a RequestHandler's init, how to get solr data dir?

2008-08-26 Thread Brian Whitman
I want to be able to store non-solr data in solr's data directory (like solr/solr/data/stored alongside solr/solr/data/index) The java class that sets up this data is instantiated from a RequestHandlerBase class like: public class StoreDataHandler extends RequestHandlerBase { StoredData sto

Re: Question about search suggestion

2008-08-26 Thread Norberto Meijome
On Tue, 26 Aug 2008 15:15:21 +0300 Aleksey Gogolev <[EMAIL PROTECTED]> wrote: > > Hello. > > I'm new to solr and I need to make a search suggest (like google > suggestions). > Hi Aleksey, please search the archives of this list for subjects containing 'autocomplete' or 'auto-suggest'. that sho

Re: Question about search suggestion

2008-08-26 Thread Shalin Shekhar Mangar
Hi Aleksey, Welcome to Solr! You should append a wildcard at the end e.g. search like "samsu*" which should match "samsung". On Tue, Aug 26, 2008 at 5:45 PM, Aleksey Gogolev <[EMAIL PROTECTED]> wrote: > > Hello. > > I'm new to solr and I need to make a search suggest (like google > suggestions)

Re: dataimporthandler and multiple delta-import

2008-08-26 Thread Shalin Shekhar Mangar
On Tue, Aug 26, 2008 at 5:52 PM, Walter Ferrara <[EMAIL PROTECTED]>wrote: > no problem! I've opened https://issues.apache.org/jira/browse/SOLR-728 Thanks! > > I do understand the fact that import should be run sequentially, the > main issue I can foresee is a delta-import via curl in crontab, t

SolrJ - SolrServer#commit() doesn't return

2008-08-26 Thread Machisuji
Hey. I've been working with SolR for a few days now and as long as I haven't worked with too much data everything was alright. However, now that I wanted to index really all data, I've got problems with SolrJ not returning from a call to CommonHttpSolrServers's commit(). I try to upload data fro

Re: dataimporthandler and multiple delta-import

2008-08-26 Thread Walter Ferrara
Shalin Shekhar Mangar wrote: > Hi Walter, > > Indeed, there's a race condition there because we didn't expect people to > hit it concurrently. We expected that imports would be run sequentially. > > Thanks for noticing this. We shall add synchronization to the next release. > Do you mind (again) op

Question about search suggestion

2008-08-26 Thread Aleksey Gogolev
Hello. I'm new to solr and I need to make a search suggest (like google suggestions). In first approach I decided to make it in this way: 1. Script make a query to solr using words that were typed by user. 2. Then script analyse docs (which solr return) and build a suggestions. But I confronte

Re: dataimporthandler and multiple delta-import

2008-08-26 Thread Shalin Shekhar Mangar
Hi Walter, Indeed, there's a race condition there because we didn't expect people to hit it concurrently. We expected that imports would be run sequentially. Thanks for noticing this. We shall add synchronization to the next release. Do you mind (again) opening an issue for this? We'll attach a p

dataimporthandler and multiple delta-import

2008-08-26 Thread Walter Ferrara
I'm using DIH and its wonderful delta-import. I have a question: the delta-import is synchronized? multiple call to delta imports, shouldn't result in one refused because the status is not idle? I've noticed however that calling multiple times in a sec the dataimport/?command=delta-import result in

Re: dataimporthandler and mysql connector jar

2008-08-26 Thread Shalin Shekhar Mangar
Thanks Walter. I shall work up a patch soon. On Tue, Aug 26, 2008 at 1:22 PM, Walter Ferrara <[EMAIL PROTECTED]>wrote: > Shalin Shekhar Mangar wrote: > > Can you please open a JIRA issue for this? However, we may only be able > to > > fix this after 1.3 because a code freeze has been decided upon

Re: dataimporthandler and mysql connector jar

2008-08-26 Thread Walter Ferrara
Shalin Shekhar Mangar wrote: > Can you please open a JIRA issue for this? However, we may only be able to > fix this after 1.3 because a code freeze has been decided upon, to release > 1.3 asap. > I've open https://issues.apache.org/jira/browse/SOLR-726 Walter