How to get SolrServer

2011-12-13 Thread Joey
Hi I am new to Solr and want to do some customize development. I have wrapped solr to my own web application, and want to write a servlet to index a file system. The question is how can I get SolrServer inside my Servlet? -- View this message in context: http://lucene.472066.n3.nabble.com/How-

Re: How to get SolrServer within my own servlet

2011-12-13 Thread Joey
Anybody could help? -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-get-SolrServer-within-my-own-servlet-tp3583304p3583368.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to get SolrServer within my own servlet

2011-12-13 Thread Joey
Thanks Patrick for the reply. What I did was un-jar solr.war and created my own web application. Now I want to write my own servlet to index all files inside a folder. I suppose there is already solrserver instance initialized when my web app started. How can I access that solr server instan

Re: How to get SolrServer within my own servlet

2011-12-13 Thread Joey
Thank you guys for the reply. So what I want to do is to modify Solr a bit - add one servlet so I can trigger a full index of a folder in the file system. What I did: un-jar solr.war; Create a web app and copy the un-jar the solr files to this app; Create my servlet; R

Re: How to get SolrServer within my own servlet

2011-12-14 Thread Joey
Hi Chris, There won't be deadlock I think because there is only one place(from my own servlet) can trigger a index. Yes, I am trying to embed Solr application - I could separate my servlet to another app and talk to Sorl via HTTP, but there will be two pieces(Solr and my own app) of software I h

Re: Special character in a field used by sort parameter

2011-05-25 Thread Joey
Marc SCHNEIDER gmail.com> writes: > > Hi, > > I have a field called test-id but I can't use it when sorting, for example : > Doesn't work : ("undefined field test") > http://localhost:8180/solr/test-public/select/?q=test-id:1&sort=test-id+asc > http://localhost:8180/solr/test-public/select/?q=t

what's the cummunication protocol between the shards for a shard reqeust?

2012-08-02 Thread Joey
for example we have two shards: shard1 and shard2. our shard request always goes to shard1, wondering what's the protocol when shard sends request to shard2? is it http. in binary format? we are trying to set up appdynamics to monitor the shards but looks like appdynamic could not instrument the r

weired shards search problem

2012-08-02 Thread Joey
we have two shards -shard1 and shard2 - each shard has two slaves. And there is a VIP and LB in front of each set of the slaves. The shard request return a SolrDocumentList object, (for same request)SOMETIMES the "getNumFound" of this object return correct data(say 3) but the actual doccument

SolrException: Invalid Date String:'oracle.sql.TIMESTAMP

2012-01-12 Thread Joey Grimm
Hi, I am trying to use a dataImportHandler to import data from an oracle DB. It works for non-date fields but is throwing an exception once I included the MODIFIEDDATE field (oracle.timestamp field). Can anyone see what I'm doing wrong here? Thanks. schema.xml db-data-config.xml

Solr ExtractingRequestHandler with Compressed files

2010-10-22 Thread Joey Hanzel
Hi, Has anyone had success using ExtractingRequestHandler and Tika with any of the compressed file formats (zip, tar, gz, etc) ? I am sending solr the archived.tar file using curl. curl " http://localhost:8983/solr/update/extract?literal.id=doc1&fmap.content=body_texts&commit=true"; -H 'Content-t

Re: Solr ExtractingRequestHandler with Compressed files

2010-10-26 Thread Joey Hanzel
Solr version 1.4.1 should also have the fix included. Try using it. > > Regards, > Jayendra > > On Fri, Oct 22, 2010 at 6:02 PM, Joey Hanzel >wrote: > > > Hi, > > > > Has anyone had success using ExtractingRequestHandler and Tika with any > of > > the

Re: SolrCloud: Does each node has to contain the same indexes?

2013-02-05 Thread Joey Dale
There is no reason that wont work. You may have to creating the collections using the cores api rather than the collections api, but it shouldn't be too bad. -Joey On 2/5/13 6:35 AM, Mathias Hodler wrote: Hi, can I set up a SolrCloud with 3 nodes (no sharding, only replicas) like i

Re: distinct count of facet field values

2013-02-06 Thread Joey Dale
Try q=*:*&group=true&group.field=cat&group.ngroups=true On 2/4/13 3:53 AM, J Mohamed Zahoor wrote: Hi Is it possible to get the distinct count of a given facet field in Solr? A query like this q=*:*&facet=true&facet.field=cat display the counts of all the unique categories present like ele

Re: Extracting contents of zipped files with Tika and Solr 1.4.1

2011-04-10 Thread Joey Hanzel
Hi Gary, I have been experiencing the same problem... Unable to extract content from archive file formats. I just tried again with a clean install of Solr 3.1.0 (using Tika 0.8) and continue to experience the same results. Did you have any success with this problem with Solr 1.4.1 or 3.1.0 ? I'

Re: Extracting contents of zipped files with Tika and Solr 1.4.1

2011-04-11 Thread Joey Hanzel
; https://issues.apache.org/jira/browse/SOLR-2416 > https://issues.apache.org/jira/browse/SOLR-2332 > > You can try these. > > Regards, > Jayendra > > On Sun, Apr 10, 2011 at 10:35 PM, Joey Hanzel > wrote: > > Hi Gary, > > > > I have been experiencing