Re: SEVERE: java.util.concurrent.RejectedExecutionException

2010-05-06 Thread Blargy
FYI, the code that is causing this exception and an explanation of my specific use case is all listed in this thread: http://lucene.472066.n3.nabble.com/Custom-DIH-variables-td777696.html -- View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-java-util-concurrent-RejectedExec

Re: Custom DIH variables

2010-05-06 Thread Blargy
So I came up with the following class. public class LatestTimestampEvaluator extends Evaluator { private static final Logger logger = Logger.getLogger(LatestTimestampEvaluator.class.getName()); @Override public String evaluate(String expression, Context context) { List params = Evalu

SEVERE: java.util.concurrent.RejectedExecutionException

2010-05-06 Thread Blargy
I am working with creating my own custom dataimport handler evaluator class and I keep running across this error when I am trying to delta-import. It told me to post this exception to the mailing list so thats what I am doing ;) [java] SEVERE: java.util.concurrent.RejectedExecutionException

Re: Example of using "stream.file" to post a binary file to solr

2010-05-06 Thread Sandhya Agarwal
Sorry. That is what I meant. But, I put it wrongly. I have not been able to find examples of using solrj, for this. - Sent from iPhone On 07-May-2010, at 1:23 AM, "Chris Hostetter" wrote: > > : Subject: Example of using "stream.file" to post a binary file to > solr >... > : Can somebo

How to load Core Properties after Core creation?

2010-05-06 Thread Ying Huang
Hi All, Does anyone know if there is any way to create a new Core with specified properties or to alter and reload Core Properties for a Core without restarting the service? I tried to do this in three steps: 1) Create a new core; 2) Edit solr.xml directly to add properties into the

cache control per-request

2010-05-06 Thread Nagelberg, Kallin
Hey everyone, Does anyone know if it is possible to control cache behavior on a per-request basis? I would like to be able to use the queryResultCache for certain queries, but have it bypassed for others. IE, I know at query time if there is 0 chance of a hit and would like to avoid the cache o

Date Facet mincount is not honored in Solr 1.4.

2010-05-06 Thread Umesh_
Hi All, I was trying to restrict facet values on date so that dates with zero values are not returned in the response. Solr 1.4 does not support the mincount for dates, but there is a patch ( see https://issues.apache.org/jira/browse/SOLR-343 ) that should fix it. Has any one tried to apply thi

Re: Example of using "stream.file" to post a binary file to solr

2010-05-06 Thread Chris Hostetter
: Subject: Example of using "stream.file" to post a binary file to solr ... : Can somebody please point me to an example, of how we can leverage : *stream.file* for streaming documents, using UpdateRequest API. (SolrJ : API) the "stream.file" param is not used to "POST" files to Solr fr

Re: Short DismaxRequestHandler Question

2010-05-06 Thread Chris Hostetter
: I need a minimum should match only on some fields, not on all. You need to elaborate more on how you want things to work -- you've only provided one example doc and one example quer, and indicated that you want them to match -- you haven't explained: a) what docs should *not* match the quer

Re: full-import cycle, period ?!

2010-05-06 Thread Chris Hostetter
: is it really necessary to run an full import every night ? (these comments are not specific to DIH, they are general opinions) In my experience if you have a really good "delta" importing strategy, then the only reason you need a full rebuild strategy is in the event of catestrophic failure

Indexing MediaWikis?

2010-05-06 Thread Johan Cwiklinski
Hello, On the wiki, I've read something about MediaWiki indexation: http://wiki.apache.org/solr/DataImportHandler#Example:_Indexing_wikipedia I wonder if there is somewhere a project for indexing/searching with solr from a mediawiki (as the existing MW Lucene plugin). I do not know MW database v

Re: How to do partial beginning matches

2010-05-06 Thread Erick Erickson
Most of what I've gleaned has come off the users list, but then I've been monitoring it for several years. You can search all the back posts here: http://www.lucidimagination.com/search/?q=#/p:lucene,solr for instance searching wildcard AN

caching repeated OR'd terms

2010-05-06 Thread Nagelberg, Kallin
Hey everyone, I'm having some difficulty figuring out the best way to optimize for a certain query situation. My documents have a many-valued field that stores lists of IDs. All in all there are probably about 10,000 distinct IDs throughout my index. I need to be able to query and find all docu

Re: problem int type in adding xml file

2010-05-06 Thread Antonello Mangone
You're right I've solved the problem in this way, but it's a bit strange with float numbers didn't give me this problem. 2010/5/6 Erik Hatcher > In your example you certainly do have whitespace in there. Make it name="flg_access">1 instead. > > However, I think this is a case where Solr shoul

Re: problem int type in adding xml file

2010-05-06 Thread Erik Hatcher
In your example you certainly do have whitespace in there. Make it 1 instead. However, I think this is a case where Solr should be lenient and trim leading and trailing whitespace when parsing incoming strings into numbers/dates. Erik On May 6, 2010, at 10:25 AM, Antonello Man

problem int type in adding xml file

2010-05-06 Thread Antonello Mangone
Hi to all, I have a problem when I try to add an xml file to a core ... in my xmlfile I have a field that is: 1 in my schema.xml file I've defined the int type as in the examples of tutorial and then I defined the field in this way when I try to i

Re: "Solr 1.4 Enterprise Search Server" book examples

2010-05-06 Thread Antonello Mangone
I had the same problem and I send a message ... I'm waiting for an answer :D 2010/5/6 Stefan Moises > Hi fellow Solr users, > > I have contacted Packt regarding this issue and they are already working on > fixing it, here is the friendly response I've received: > > Dear Stefan, > > Thank you for

Re: "Solr 1.4 Enterprise Search Server" book examples

2010-05-06 Thread Stefan Moises
Hi fellow Solr users, I have contacted Packt regarding this issue and they are already working on fixing it, here is the friendly response I've received: Dear Stefan, Thank you for writing to PacktPub.com. I'm sorry to know that you were not able to access the code files for our title. Ou

Re: How to do partial beginning matches

2010-05-06 Thread Felix Pendergast
Thank you, Erick. Where can I find more information about the *term* queries and how to solve them? It might come up in the future. Are there blogs, or books, or something? Thanks, Felix 2010/5/6 Erick Erickson > There's really no connection between NGrams and *. NGrams can be used > to handle h

Re: How to do partial beginning matches

2010-05-06 Thread Erick Erickson
There's really no connection between NGrams and *. NGrams can be used to handle hairy wildcard expressions, in particular searching for things like *blah* is one potential use of NGrams. But your problem is simple to solve without bothering with NGrams, just use the "begin*" syntax, no special ind

Example of using "stream.file" to post a binary file to solr

2010-05-06 Thread Sandhya Agarwal
Hello, Can somebody please point me to an example, of how we can leverage *stream.file* for streaming documents, using UpdateRequest API. (SolrJ API) Thanks, Sandhya

How to do partial beginning matches

2010-05-06 Thread Felix Pendergast
Hello, I'm trying to search for partial beginning matches on a big list of lastnames. So Wein* should find Weinberg, Weinkamm etc. I could do this by creating a special field, and adding to its type specification in schema.xml. When I add the line above only to the indexing analyzer and leave

Any way to specify the data dir in Tomcat Context file?

2010-05-06 Thread Nabble User
I have Solr configured on Centos 5 with Tomcat 5. I'd like to have several solr instances on the machine that share the same solrconfig.xml file but override the data directory and set their own data location. Is there some way to override the data directory in the Tomcat context file? I tried s

Re: Custom DIH variables

2010-05-06 Thread Noble Paul നോബിള്‍ नोब्ळ्
you can use the core from this API and use EmbeddedSolrServer (part of solrj) . So the calls will be in-vm On Thu, May 6, 2010 at 6:08 AM, Blargy wrote: > > Thanks Noble this is exactly what I was looking for. > > What is the preferred way to query solr within these sorts of classes? > Should I

Re: hi to everyone

2010-05-06 Thread Antonello Mangone
Thank you very much :D 2010/5/6 Marco Martinez > See this page > > http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curland > the solr tutorial > http://lucene.apache.org/solr/tutorial.html (maybe you can use the > post.jar). > > Marco Martínez Bautista > http://www.parad

Re: hi to everyone

2010-05-06 Thread Marco Martinez
See this page http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curland the solr tutorial http://lucene.apache.org/solr/tutorial.html (maybe you can use the post.jar). Marco Martínez Bautista http://www.paradigmatecnologico.com Avenida de Europa, 26. Ática 5. 3ª Planta 28224

Re: hi to everyone

2010-05-06 Thread Antonello Mangone
Ok, you're right :D I exaplain my situation ... I have solr locally on my machine */home/antonello/solrtest* inside the folder solrtest I have: |_ build |_ build.xml |_ CHANGES.txt |_ client |_ common-build.xml |_ contrib |_ dist |_ docs |_ etc |_ lib |_ LICENSE.txt |_ logs |_ multicore

Re: hi to everyone

2010-05-06 Thread Marco Martinez
You should specify the core in your request, like http://localhost:8080/solr/*core0*/update?... where /solr/ is your webapp and 'core0' is the name of the core. Marco Martínez Bautista http://www.paradigmatecnologico.com Avenida de Europa, 26. Ática 5. 3ª Planta 28224 Pozuelo de Alarcón Tel.:

Re: multivalue fields logic required

2010-05-06 Thread Marco Martinez
Hi Jonty, I think you have three possible solutions: 1. Use the collapse component with your name field for not have any duplicates documents. 2. Create a simple logic in your index with flags, like one flag to determine the first element of the same document (in your example you wil

hi to everyone

2010-05-06 Thread Antonello Mangone
Hi to everyone, my name is Antonello Mangone and I'm a new user of Solr (this is the 4th day :D). I'm just a novice and i would like to make a question ... I'm using solr in multicore way but i don't understad how to add xml documents to a particular core ... Can someone help me ??? Antonello

Re: Custom DIH EventListeners

2010-05-06 Thread Noble Paul നോബിള്‍ नोब्ळ्
nope. register any event listener and check for the context.currentProcess() to figure out what is the event On Thu, May 6, 2010 at 8:21 AM, Blargy wrote: > > I know one can create custom event listeners for update or query events, but > is it possible to create one for any DIH event (Full-Import

Re: Spatial Solr: problem with multiValued PointType

2010-05-06 Thread Pointbreak
On Wed, 05 May 2010 06:00 -0700, "Grant Ingersoll" wrote: > > On May 4, 2010, at 7:20 AM, pointbreak+s...@ml1.net wrote: > > > I want to link documents to multiple spatial points, and filter > > documents based on a bounding box. I was expecting that the > > solr.PointType would help me with tha

Re: multivalue fields logic required

2010-05-06 Thread Jonty Rhods
thanks :General solution is to index 3 different SolrDocument in your example. id and name fields will repeat themselves. All fields will be single-valued. if I am indexing 3 different field then if user is searching by name + dept then it will return duplicate value.. is there any other best pos

Re: Custom DIH variables

2010-05-06 Thread Ahmet Arslan
> My specific use case is instead of using > dataimporter.last_index_time I want > to use something like > dataimporter.updated_time_of_last_document. Our DIH is > set up to use a bunch of slave databases and there have > been problems with > some documents getting lost due to replication lag. Ca

Re: multivalue fields logic required

2010-05-06 Thread Ahmet Arslan
> recently I start to work on solr, So I am still very new to > use solr. Sorry > if I am logically wrong. > I have two table, parent and referenced (child). > > for that I set multivalue field following is my schema > details > stored="true" required="true" > /> > > >     indexed="true" stor

RE: Problem with pdf, upgrading Cell

2010-05-06 Thread Sandhya Agarwal
Praveen, You can get the latest code, containing the fix, from here : http://lucene.apache.org/tika/source-repository.html Thanks, Sandhya -Original Message- From: Praveen Agrawal [mailto:pkal...@gmail.com] Sent: Wednesday, May 05, 2010 10:49 PM To: solr-user@lucene.apache.org Subject: