Re: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out

2012-02-22 Thread Sethi, Parampreet
Hi Uomesh, I was facing similar issues few days ago and was able to resolve it by deleting the lock file created in the index directory and restarting my solr server. I have documented the same in one of the posts at http://www.params.me/2011/12/solr-index-lock-issue.html Hope it helps! -param

Re: Wildcard ? issue?

2012-02-08 Thread Sethi, Parampreet
Hi Dalius, If not already tried, Check http://localhost:8983/solr/admin/analysis.jsp (enable verbose output for both Field Value index and query for details) for your queries and see what all filters/tokenizers are being applied. Hope it helps! -param On 2/8/12 10:48 AM, Dalius Sidlauskas

Re: $deleteDocByQuery and $deleteDocByID

2012-02-01 Thread Sethi, Parampreet
Hi Erik, Is this what you are looking for? http://lucene.apache.org/solr/tutorial.html#Deleting+Data Execute the following command to delete a document java -Ddata=args -Dcommit=no -jar post.jar deleteidSP2514N/id/delete Š Here is an example of using delete-by-query to delete anything with

Re: What is the most basic schema.xml you can have for indexing a simple database?

2012-01-25 Thread Sethi, Parampreet
Hi Fergus, The schema.xml has declaration of fields as well as analyzers/tokenizers which are required as per the application demand. The easiest way is to modify the schema.xml file which is delivered with apache_solr/example/solr/conf. In case you are looking for setting up Solr in front of

Re: java.net.SocketException: Too many open files

2012-01-24 Thread Sethi, Parampreet
Hi Jonty, You can try changing the maximum number of files opened by a process using command: ulimit -n XXX In case, the number of opened files is not increasing with time and just a constant number which is larger than system default limit, this should fix it. -param On 1/24/12 11:40 AM,

Re: matching on month

2012-01-05 Thread Sethi, Parampreet
Hi Don, You can try date name=*effDate_tdt*2011-05-01T00:00:00Z TO 2011-05-30T00:00:00Z/date date name=*effDate_tdt*2006-05-01T00:00:00Z TO 2006-05-30T00:00:00Z/date And so on. I am not sure if month query is available, probably other group members can shed more light on the same. But this

Re: Query regarding solr custom sort order

2012-01-04 Thread Sethi, Parampreet
Hi Uma, Have you declared the type as integer for this field? In case, type is some form of String (text, string etc.) the sorting will happen lexicographically. -param On 1/4/12 8:40 AM, umaswayam umaswa...@gmail.com wrote: Hi, We want to sort our records based on some sequence which is like

Re: Problem with facet.fields

2012-01-04 Thread Sethi, Parampreet
Hi Marc, It could be because of . in the field name. Try doing url encoding of . and it should work. But if I put : q=*:*facet=truefacet.field=lom.classification.ddc.id facet.field=lom.educational.context -param On 1/4/12 10:27 AM, Marc SCHNEIDER marc.schneide...@gmail.com wrote: Hi, I'm

Re: How to index documents in SOLR running in Window XP envronment

2012-01-04 Thread Sethi, Parampreet
Hi Divakar, If you need to do simple Solr document indexing and know java, You can write a java file along with data bean and use Solrj client for indexing. Here's one simple tutorial: http://www.params.me/2011/09/solrj-code-and-usage-example.html Please provide more details on what you are

Re: Doubt Regarding Shards Index

2012-01-03 Thread Sethi, Parampreet
Hi Suneel, I have implemented Solr sharding in one of my projects where data was of the order of 1 billion documents and my queries were throwing Out of memory exception because of huge index. Here are my views: - Have identical Solr server setups for each shard with same schema. 1. We need to

Re: Dates off by 1 day?

2011-08-10 Thread Sethi, Parampreet
The Date difference is coming because of different time zones. In Solr the date is stored as Zulu time zone and Solrj is returning date in CDT timezone (jvm is picking system time zone.) date name=FILE_DATE2002-05-13T00:00:00Z/date I get: -- Sun May 12 19:00:00 CDT 2002

Re: How can I create a good autosuggest list with phrases?

2011-08-04 Thread Sethi, Parampreet
We handled similar requirement in our product kitchendaily.com by creating a list of Search terms which were frequently searched over a period of time and then building auto-suggestion index from this data. The constant updates of this will allow you to support a well formed auto-suggest feature.

Re: Is there anyway to sort differently for facet values?

2011-08-04 Thread Sethi, Parampreet
It can be achieved by creating own (app specific) custom comparators for fields defined in schema.xml and having an extra attribute to specify the comparator class in the field tag itself. But it will require changes in the Solr to support this feature. (Not sure if it's feasible though just

ClientUtil.escapeQueryChars and Solr Search

2011-04-27 Thread Sethi, Parampreet
Hi All, I am using ClientUtil.escapeQueryChars function to escape query characters, before I make call to Solr (using Solr 1.3) server through Solrj client in Java. The issue is any query with space, is getting escaped. For example chicken tikka is escaped to chicken\ tikka. When the escaped

Storing Nested Fields

2011-03-23 Thread Sethi, Parampreet
Hi All, This is regarding nested array functionality. I have requirements 1. to store category and sub-category association with a word in the Solr. 2. Also each word can be listed under multiple categories (and thus sub-categories). 3. Query based on category or sub-category. One way is to

RE: Error loading class 'solr.ASCIIFoldingFilterFactory'

2010-10-13 Thread Sethi, Parampreet
Thanks Hoss for the reply. Yes, The ASCIIFoldingFilterFactory factory does not exist in Solr 1.3. Its present in lucene-core-2.9.0-sources.jar which is part of Solr 1.4. I found out after checking the java docs for this file. -param -Original Message- From: Chris Hostetter

Error loading class 'solr.ASCIIFoldingFilterFactory'

2010-10-12 Thread Sethi, Parampreet
Hi All, I am using solr 1.3. I get the below mentioned error when included the solr.ASCIIFoldingFilterFactory on 'text' field while index and query time: SEVERE: org.apache.solr.common.SolrException: Error loading class 'solr.ASCIIFoldingFilterFactory' at

Accented Search in Solr

2010-10-08 Thread Sethi, Parampreet
Hi All, I am using Solr 1.3 in my project. Just wanted to know if there is any other way by which below mentioned queries will return the same results: Gruyère-and-Zucchini Gruyere-and-Zucchini The first query has accented characters in it. I was just going through the Solr tokenizers and

RE: Solr Index Lock Issue

2010-04-17 Thread Sethi, Parampreet
://sematext.com/ :: Solr - Lucene - Nutch Hadoop ecosystem search :: http://search-hadoop.com/ - Original Message From: Sethi, Parampreet parampreet.se...@corp.aol.com To: solr-user@lucene.apache.org Sent: Fri, April 16, 2010 1:13:57 PM Subject: Solr Index Lock Issue Hi All, We are facing

Solr Index Lock Issue

2010-04-16 Thread Sethi, Parampreet
Hi All, We are facing the issue with the Solr server in the DMOZ data migration. The Solr has 0 records when the migration starts and the data is added into Solr in the batches of 2 records. The commit is called on Solr after 20k records are processed. While commiting the data into Solr,