locks in solr

2009-11-25 Thread Rakhi Khatwani
Hi, Is there any article which explains the locks in solr?? there is some info on solrconfig.txt which says that you can set the lock type to none(NoLockFactory), single(SingleInstanceLockFactory), NativeFSLockFactory and simple(SimpleFSLockFactory) which locks everytime we create a new file.

Multicore - Post xml to core0, core1 or core2

2009-11-25 Thread Jörg Agatz
Hallo, at the moment i tryed to create a Solr instance wite more then one Cores I use solr 1.4 and multicore Runs :-) But i dont know how i post a XML in one of my cores. At the Moment i use "java -jar post.jar *.xml" now i will fill the core0 index with core0*.xml , and core1 with core1*.xml Bu

Re: Multicore - Post xml to core0, core1 or core2

2009-11-25 Thread Noble Paul നോബിള്‍ नोब्ळ्
try this java -Durl=http://localhost:8983/solr/core0/update -jar post.jar *.xml On Wed, Nov 25, 2009 at 3:23 PM, Jörg Agatz wrote: > Hallo, at the moment i tryed to create a Solr instance wite more then one > Cores > > I use solr 1.4 and multicore Runs :-) > But i dont know how i post a XML in o

Re: Multicore - Post xml to core0, core1 or core2

2009-11-25 Thread Jörg Agatz
Thanks, it works realy fine.. Maby you have an Ideo, to search in Core0 and Core1 I want to search in all cores, or only in 2 of 3 cores.

Sending Tika parse result to Solr

2009-11-25 Thread Daniel Knapp
Hello, i want to send the Tika parse results of my data to my Solr-Server. My File-Server is not my Solr-Server, so Solr Cell is no option for me. In Lucene i can pass my Reader Object (as an result of the parsing) to a Lucene Document for indexing. Is this also possible with Solr? Or is there

Buggy search Solr1.4 Multicore

2009-11-25 Thread Jörg Agatz
Hi... I have a Problem with Solr, I try it with 3 cores, and it starts. I can search but i only become results, when i exaktly search for the howls field. i mean, in the field stand: "Dell Widescreen Ultra" when i search for "name:Widescreen" i get Nothing "name:Dell Widescreen Ultra" i get the

Re: Buggy search Solr1.4 Multicore

2009-11-25 Thread Rafał Kuć
Hello! > Hi... > I have a Problem with Solr, I try it with 3 cores, and it starts. I can > search but i only become results, when i exaktly search for the howls field. > i mean, in the field stand: "Dell Widescreen Ultra" > when i search for > "name:Widescreen" i get Nothing > "name:Dell Widesc

Help on this parsed query

2009-11-25 Thread revas
I have the text analyzer defined as follows when i search on this field name simple of the above field type , the term peRsonal *I expect it to search as simple:personal simple :pe simple:rsonal* instead the parsed query string says *simple:peRson

Solr 1.4 search in more the one Core

2009-11-25 Thread Jörg Agatz
Hollo, I try to search in more than one Core. I search in Wiki, but i dont find any way to search in 2 of the 3 cores and a way to seacht in all cores. maby Someone of you have tryed the same an can help me?

Re: Sending Tika parse result to Solr

2009-11-25 Thread Grant Ingersoll
On Nov 25, 2009, at 5:32 AM, Daniel Knapp wrote: > Hello, > > > i want to send the Tika parse results of my data to my Solr-Server. > My File-Server is not my Solr-Server, so Solr Cell is no option for me. > > In Lucene i can pass my Reader Object (as an result of the parsing) to a > Lucene D

Re: how is score computed with hsin functionquery?

2009-11-25 Thread Grant Ingersoll
On Nov 24, 2009, at 6:22 PM, gdeconto wrote: > > > gdeconto wrote: >> >> ... >> is there some way to convert the hsin value to distance? >> ... >> > > I just noticed that the solr wiki states "Values must be in Radians" and all > my test values were in degrees. Yep. Also note that I added

Re: how to do partial word searches?

2009-11-25 Thread Joel Nylund
Hi Erick, thanks for the links, I read both of them and I still have no idea what to do, lots of back and forth, but didn't see any solution on it. One person talked about indexing the field in reverse and doing and ON on it, this might work I guess. thanks Joel On Nov 24, 2009, at 9:12

Re: Implementing phrase autopop up

2009-11-25 Thread Shalin Shekhar Mangar
On Tue, Nov 24, 2009 at 11:58 PM, darniz wrote: > > > i created a filed as same as the lucid blog says. > > omitNorms="true" omitTermFreqAndPositions="true"/> > > with the following field configurtion > > positionIncrementGap="100"> > − > > > > maxGramSize="25"/> > > − > > > > > > > N

Re: Buggy search Solr1.4 Multicore

2009-11-25 Thread Erick Erickson
If Rafal's response doesn't help (but it's sure where I'd look first, it sounds like you're using a field type that's not Tokenized), then could you post the relevant parts of your config file that define the field and the analyzers used at *both* query and index time? Best Erick On Wed, Nov 25,

Re: Help on this parsed query

2009-11-25 Thread Erick Erickson
I think because if it wasn't a phrase query you'd be matching on the broken up parts of the word *wherever* they were in your field. e.g. "pe" and "rsonal" could be separated by any number of other tokens and you'd get a match. HTH Erick P.S. I was a bit confused by your asterisks, it took me

Re: SolrPlugin Guidance

2009-11-25 Thread Shalin Shekhar Mangar
On Tue, Nov 24, 2009 at 11:04 PM, Vauthrin, Laurent < laurent.vauth...@disney.com> wrote: > > Our team is trying to make a Solr plugin that needs to parse/decompose a > given query into potentially multiple queries. The idea is that we're > trying to abstract a complex schema (with different docu

Re: locks in solr

2009-11-25 Thread Shalin Shekhar Mangar
On Wed, Nov 25, 2009 at 3:05 PM, Rakhi Khatwani wrote: > Hi, > Is there any article which explains the locks in solr?? > there is some info on solrconfig.txt which says that you can set the lock > type to none(NoLockFactory), single(SingleInstanceLockFactory), > NativeFSLockFactory and simpl

Re: why is XMLWriter declared as final?

2009-11-25 Thread Shalin Shekhar Mangar
On Wed, Nov 25, 2009 at 3:33 AM, Matt Mitchell wrote: > Is there any reason the XMLWriter is declared as final? I'd like to extend > it for a special case but can't. The other writers (ruby, php, json) are > not > final. > > I don't think it needs to be final. Maybe it is final because it wasn't

Re: Solr 1.4 search in more the one Core

2009-11-25 Thread Shalin Shekhar Mangar
On Wed, Nov 25, 2009 at 5:39 PM, Jörg Agatz wrote: > Hollo, > > I try to search in more than one Core. > > I search in Wiki, but i dont find any way to search in 2 of the 3 cores and > a way to seacht in all cores. > > maby Someone of you have tryed the same an can help me? > You need to provide

Re: ExternalRequestHandler and ContentStreamUpdateRequest usage

2009-11-25 Thread javaxmlsoapdev
Grant, can you assist. I am going clueless as to why its not indexing content of the file. I have provided schema, code info below/previous threads. do I need to explicitly add param("content", "') into ContentStreamUpdateRequest? which I don't think is the right thing to do. Please advie. let me

Re: Solr 1.4 search in more the one Core

2009-11-25 Thread Jörg Agatz
> Why do you want to search across cores on the same Solr? > > -- > Regards, > Shalin Shekhar Mangar. > I only need Multiindexing, but i find no other way to import other indizes. I have some old indexes from a other Projekt, and will us this in Solr. i i use one index it works, but i have a lot

Re: how to do partial word searches?

2009-11-25 Thread Erick Erickson
Confession: I haven't had occasion to use the ngram thingy, but here's the theory And note that SOLR has n-gram tokenizers available.. Using a 2-gram example for sullivan, the n-gram would index these tokens... su, ul, ll, li, iv, va, an. Then at query time in your example, sulli would be brok

Re: Solr 1.4 search in more the one Core

2009-11-25 Thread Erick Erickson
Would it help to combine the indexes into one big one? There sound reasons NOT to do this, but if it's a possibility, have you seen the info here? http://wiki.apache.org/solr/MergingSolrIndexes Best Erick On Wed, Nov 25, 2009 at 9:00 AM, Jörg Agatz

Re: how to do partial word searches?

2009-11-25 Thread Robert Muir
Hi, if you are using Solr 1.4 I think you might want to try type text_rev (look in the example schema.xml) unless i am mistaken: this will enable leading wildcard support for that field. this doesn't do any stemming, which I think might be making your wildcards behave wierd. it also enables rever

Re: why is XMLWriter declared as final?

2009-11-25 Thread Matt Mitchell
OK thanks Shalin. Matt On Wed, Nov 25, 2009 at 8:48 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Wed, Nov 25, 2009 at 3:33 AM, Matt Mitchell > wrote: > > > Is there any reason the XMLWriter is declared as final? I'd like to > extend > > it for a special case but can't. The ot

RE: Index Splitter

2009-11-25 Thread Giovanni Fernandez-Kincade
You can't really use this if you have an optimized index, right? -Original Message- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] Sent: Tuesday, November 24, 2009 6:57 PM To: solr-user@lucene.apache.org Subject: Re: Index Splitter Giovanni Fernandez-Kincade wrote: > Hi, > I've heard a

Re: Index Splitter

2009-11-25 Thread Koji Sekiguchi
Giovanni Fernandez-Kincade wrote: You can't really use this if you have an optimized index, right? For optimized index, I think you can use MultiPassIndexSplitter. Koji -- http://www.rondhuit.com/en/

Re: how is score computed with hsin functionquery?

2009-11-25 Thread gdeconto
Grant Ingersoll-6 wrote: > > ... > Yep. Also note that I added deg() and rad() functions, but for the most > part is probably better to do the conversion during indexing. > ... > Thanks Grant. I hadnt seen the deg and rad functions. Conversion would be difficult since I typically work with

Where to put ExternalRequestHandler and Tika jars

2009-11-25 Thread javaxmlsoapdev
My SOLR_HOME =/home/solr_1_4_0/apache-solr-1.4.0/example/solr/conf in tomcat.sh POI, PDFBox, Tika and related jars are under /home/solr_1_4_0/apache-solr-1.4.0/lib When I try to index files using SolrJ API as follow, I don't see content of the file being indexed. It only indexes file size (bytes

Looking for Best Practices: Analyzers vs. UpdateRequestProcessors?

2009-11-25 Thread Andreas Kahl
Hello, are there any general criteria when to use Analyzers to implement an indexing function and when it is better to use UpdateRequestProcessors? The main difference I found in the documentation was that UpdateRequestProcessors are able to manipulate several fields at once (create, read, u

Re: Index Splitter

2009-11-25 Thread Andrzej Bialecki
Koji Sekiguchi wrote: Giovanni Fernandez-Kincade wrote: You can't really use this if you have an optimized index, right? For optimized index, I think you can use MultiPassIndexSplitter. Correct - MultiPassIndexSplitter can handle any index - optimized or not, with or without deletions, e

Re: Solr 1.4 search in more the one Core

2009-11-25 Thread Jörg Agatz
I think NO, because there is a Crawler for fulltext indexig that permernently uptate the Indexes When you have a Crawler for documents,office ect, than i can switch to solr totaly.

Re: Where to put ExternalRequestHandler and Tika jars

2009-11-25 Thread javaxmlsoapdev
g. I had to include tika and related parsing jars into tomcat/webapps/solr/WEB-INF/lib.. this was an embarrassing mistake. apologies for all the noise. Thanks, -- View this message in context: http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26518100.h

Batch file upload using solrJ API

2009-11-25 Thread javaxmlsoapdev
Is there an API to upload files over one connection versus looping through all the files and creating new ContentStreamUpdateRequest for each file. This, as expected, doesn't work if there are large number of files and quickly run into memory problems. Please advise. Thanks, -- View this messa

Re: converting over from sphinx

2009-11-25 Thread Chris Hostetter
: way. In particular, I'm doing phrase searching into a corpus of : descriptions, such as "I need help with a foo" where I have a bunch of "foo: : a foo is a subset of a bar often used to create briznatzes", etc. : : With Sphinx, I could convert "I need help with a foo" into "*need* *help* : *wi

Re: error with multicore CREATE action

2009-11-25 Thread Chris Hostetter
: : > Are there any use cases for CREATE where the instance directory : > *doesn't* yet exist? I ask because I've noticed that Solr will create : > an instance directory for me sometimes with the CREATE command. In ... : I guess when you try to add documents and an IndexWriter is opened, t

Re: why is XMLWriter declared as final?

2009-11-25 Thread Chris Hostetter
: I don't think it needs to be final. Maybe it is final because it wasn't : designed to be extensible. Please open a jira issue. it really wasn't, and it probably shouldn't be ... there is another thread currently in progress (in response to SOLR-1592) about this. Given how kludgy the entire AP

Re: why is XMLWriter declared as final?

2009-11-25 Thread Mattmann, Chris A (388J)
Hey Hoss, +1. I think we need to overhaul the whole API, even in light of the incremental progress I've been proposing and patching, etc., lately. I think it's good to do that incrementally, though, rather than all at once, especially considering SOLR is in 1.5-dev trunk stage atm. Cheers, Chr

Re: [SolrResourceLoader] Unable to load cached class-name

2009-11-25 Thread Chris Hostetter
: : I've deployed the contents of dist/ into JBoss's lib directory for the : server I'm running and I've also copied the contents of lib/ into Please be specific ... what is "dist/" what is "lib/" ? ... are you talking about the top level dist and lib directories in a solr release, then those s

Re: why is XMLWriter declared as final?

2009-11-25 Thread Matt Mitchell
Interesting. Well just to clarify my intentions a bit, I'll quickly explain what I was trying to do. I'm using the MLT component but because some of my stored fields are really big, I don't need (or want) all of the fields for my MLT docs in the response. I want my MLT docs to have only 2 fields,

Re: locks in solr

2009-11-25 Thread Chris Hostetter
: Is there any article which explains the locks in solr?? : there is some info on solrconfig.txt which says that you can set the lock : type to none(NoLockFactory), single(SingleInstanceLockFactory), : NativeFSLockFactory and simple(SimpleFSLockFactory) which locks everytime we : create a new

Re: error with multicore CREATE action

2009-11-25 Thread Shalin Shekhar Mangar
On Thu, Nov 26, 2009 at 12:43 AM, Chris Hostetter wrote: > : > : > Are there any use cases for CREATE where the instance directory > : > *doesn't* yet exist? I ask because I've noticed that Solr will create > : > an instance directory for me sometimes with the CREATE command. In > ... > :

Re: PatternTokenizer question

2009-11-25 Thread Chris Hostetter
: I think the answer to my question is contained in the wiki when discussing : the SynonymFilter, "The Lucene QueryParser tokenizes on white space before : giving any text to the Analyzer". This would indeed explain what I am : getting. Next question - can I avoid that behavior? it's the nature

Re: PatternTokenizer question

2009-11-25 Thread Walter Underwood
I think you are looking for a "free text" query parser. Essentially, it would use the analyzer chain, but then turn the token stream into a query tree. Very useful if you are searching for a band named "+/-". wunder On Nov 25, 2009, at 12:00 PM, Chris Hostetter wrote: > > : I think the answer

solr/jetty not working for anything other than localhost

2009-11-25 Thread Joel Nylund
Hi, if I try to use any other hostname jetty doesnt work, gives a blank page, if I telnet too the server/port it just disconnects. I tried editing the scripts.conf to change the hostname, that didnt seem to help. For example I tried editing my etc/hosts file and added: 127.0.0.1 solriscool

param "version" and diferences in /admin/ping response

2009-11-25 Thread Nestor Oviedo
Hi everyone! Can anyone tell me what's the meaning of the param "version" ?? There isn't anything about it in the Solr documentation. When I invoke the /admin/ping url, if the version value is between 0 and 2.1, the response looks like this: 0 5

Re: param "version" and diferences in /admin/ping response

2009-11-25 Thread Chris Hostetter
: Hi everyone! : Can anyone tell me what's the meaning of the param "version" ?? There : isn't anything about it in the Solr documentation. http://wiki.apache.org/solr/XMLResponseFormat#A.27version.27 -Hoss

Re: solr/jetty not working for anything other than localhost

2009-11-25 Thread simon
first, check what port 8983 is bound to - should be listening on all interfaces netstat -an |grep 8983 You should see tcp0 0 0.0.0.0:8983 0.0.0.0:* LISTEN -Simon On Wed, Nov 25, 2009 at 3:55 PM, Joel Nylund wrote: > Hi, if I try to use any other hostname j

Re: solr/jetty not working for anything other than localhost

2009-11-25 Thread Joel Nylund
I see: tcp46 0 0 *.8983 *.* LISTEN tcp4 0 0 127.0.0.1.8983 *.* LISTEN thanks Joel On Nov 25, 2009, at 5:21 PM, simon wrote: first, check what port 8983 is bound to - should be listening on all interfaces

Re: solr/jetty not working for anything other than localhost

2009-11-25 Thread simon
On Wed, Nov 25, 2009 at 5:27 PM, Joel Nylund wrote: > I see: > > tcp46 0 0 *.8983 *.*LISTEN > tcp4 0 0 127.0.0.1.8983 *.*LISTEN > Not the same version of linux/netstat as mine, but I'd guess that the second l

Re: solr/jetty not working for anything other than localhost

2009-11-25 Thread Joel Nylund
yes says: 2009-11-25 18:08:59.967::INFO: Started SocketConnector @ 0.0.0.0:8983 running on osx thanks Joel On Nov 25, 2009, at 6:00 PM, simon wrote: On Wed, Nov 25, 2009 at 5:27 PM, Joel Nylund wrote: I see: tcp46 0 0 *.8983 *.* LISTEN

Re: Deduplication in 1.4

2009-11-25 Thread KaktuChakarabati
Hey Otis, Yep, I realized this myself after playing some with the dedupe feature yesterday. So it does look like Field collapsing is what I need pretty much. Any idea on how close it is to being production-ready? Thanks, -Chak Otis Gospodnetic wrote: > > Hi, > > As far as I know, the point of

Date ranges for indexes constructed outside Solr

2009-11-25 Thread Phil Hagelberg
I'm working on an application that will build indexes directly using the Lucene API, but will expose them to clients using Solr. I'm seeing plenty of documentation on how to support date range fields in Solr, but they all assume that you are inserting documents through Solr rather than merging alr

Re: Where to put ExternalRequestHandler and Tika jars

2009-11-25 Thread Juan Pedro Danculovic
HI! does your example finally works? I index the data with solrj and I have the same problem and could not retrieve file data. On Wed, Nov 25, 2009 at 3:41 PM, javaxmlsoapdev wrote: > > g. I had to include tika and related parsing jars into > tomcat/webapps/solr/WEB-INF/lib.. this was a

Re: Trouble Configuring WordDelimiterFilterFactory

2009-11-25 Thread Rahul R
Hello, Would really appreciate any inputs/suggestions on this. Thank you. On Tue, Nov 24, 2009 at 10:59 PM, Rahul R wrote: > Hello, > In our application we have a catch-all field (the 'text' field) which is > cofigured as the default search field. Now this field will have a > combination of nu