Re: Solr configuration for queries

2009-01-18 Thread Julian Davchev
Not sure what you mean but you can always escape query special characters and then enclose whatever passed in double quotes. This way you'll have it treated as phrase each time. http://lucene.apache.org/java/2_4_0/queryparsersyntax.html Scroll to 'escaping special characters' + - && || ! ( ) { }

how to know new docs are posted successfully?

2009-01-18 Thread Jiayu Tang
Hi Guys, I am new to Solr, and already having fun with it. Thanks for the good work. There's one issue I hope someone could help me with. When I use CSV as the document feed, i.e. curl http://localhost:8983/solr/update/csv?stream.file=exampledocs/books.csv as in the Wiki, how can I know if it is

Date field issue within DismaxrequestHandler | searchterm is invalid date field.

2009-01-18 Thread Vicky_Dev
Hi, We are facing issues while using dismaxrequesthandler for date fields. We have to define date fields in of solrConfig.xml. .. productPublicationDate_product_dt^1.0 as soon as we add this in solrConfig.xml, dismax stops working for other attributes. ?q=searchterm&qt=dismaxr

UniqueKey documents getting indexed multiple time

2009-01-18 Thread RaghavPrabhu
Hi all, Im updating the document in solr with uniqueKey.The problem is when i update the document in the solr with same uniqueKey, that also getting indexed.Generally, when the document having the uniqueKey which is already indexed,it should delete the old one and new one to be indexed.In my cas

Re: UniqueKey documents getting indexed multiple time

2009-01-18 Thread Shalin Shekhar Mangar
The uniqueKey should be a non-tokenized field to avoid this kind of a problem. Try making the uniqueKey a string type. On Sun, Jan 18, 2009 at 5:02 PM, RaghavPrabhu wrote: > > Hi all, > > Im updating the document in solr with uniqueKey.The problem is when i > update the document in the solr wit

Re: collectionDistribution vs SolrReplication

2009-01-18 Thread Yonik Seeley
On Fri, Jan 16, 2009 at 3:33 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote: > inbuilt replication allows schema/conf replication which makes a lot > of these unnecessary. > All disable enable stuff are exposed as http commands I've not looked into the file replication part much (as opposed to the index re

Reading database parameters from outside data-config.xml

2009-01-18 Thread con
Hi all Currently i am defining database parameters like the url, username and password and also the query in data-config.xml. How can I change this scenario by which the query still remains in the data-config.xml and all other DB details from a different file[Not in solrconfig.xml]. This is becaus

Re: collectionDistribution vs SolrReplication

2009-01-18 Thread Shalin Shekhar Mangar
On Sun, Jan 18, 2009 at 9:51 PM, Yonik Seeley wrote: > > I've not looked into the file replication part much (as opposed to the > index replication). > Master and Slave solrconfig.xml will most likely need to be different > though... is that addressed somehow? > Yes. You can provide an alias to

Re: Reading database parameters from outside data-config.xml

2009-01-18 Thread Jon Baer
I think DIH would have to support JNDI which it current does not (I think). Id also be interested in this (or where the credentials came from the db itself). - Jon On Jan 18, 2009, at 11:37 AM, con wrote: Hi all Currently i am defining database parameters like the url, username and passw

Re: collectionDistribution vs SolrReplication

2009-01-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
http://wiki.apache.org/solr/SolrReplication#head-b77f4610e9b2f38433fdffc7f07cc9789ecabe72 On Sun, Jan 18, 2009 at 10:53 PM, Shalin Shekhar Mangar wrote: > On Sun, Jan 18, 2009 at 9:51 PM, Yonik Seeley wrote: > >> >> I've not looked into the file replication part much (as opposed to the >> inde

Re: Reading database parameters from outside data-config.xml

2009-01-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
Unfortunately , there is no inbuilt feature which supports something like this. The problem is that there is no simple common way to achieve this. some would want JNDI, some would want a properties file and some would want it to be read from ldap/jdbc etc It is possible to use a different DataSou

Using Threading while Indexing.

2009-01-18 Thread Sagar Khetkade
Hi, I was trying to index three sets of document having 2000 articles using three threads of embedded solr server. But while indexing, giving me exception “org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SingleInstanceLock: write.lock”. I know that this issue do per