nested solr queries

2009-11-29 Thread Mark N
Is it possible to write nested queries in Solr similar to sql like query where I can take results of the first query and use one or more of its fields as an argument in the second query. For example: field1:XYZ AND (_query_: field3:{value of field4}) This should search for all types of XYZ and

Re: Multi Index

2009-11-29 Thread Shalin Shekhar Mangar
On Sun, Nov 29, 2009 at 11:26 AM, Bhuvi HN wrote: > Hi all > I am in need of using single Solr instance for multi indexing. Please let > me > know if this is possble to do. > See http://wiki.apache.org/solr/MultipleIndexes As a best practice, consider de-normalizing your data, if possible. --

Re: Retrieving large num of docs

2009-11-29 Thread Raghuveer Kancherla
Thanks Hoss, In my previous mail, I was measuring the system time difference between sending a (http) request and receiving a response. This was being run on a (different) client machine Like you suggested, I tried to time the response on the server itself as follows: $ /usr/bin/time -p curl -sS

Re: Child entity not getting index using DIH

2009-11-29 Thread Shalin Shekhar Mangar
On Mon, Nov 30, 2009 at 8:17 AM, Gupta, Saurabh wrote: > Hi, > > I am using Solr to index two database tables with a very simple > relationship. > > Table 1: PRODUCT has ID as PK > Table 2: VERSION has ID as PK and PRODUCT_ID as PK > > There is a 1:m relationship between PRODUCT AND VERSION. > > W

Re: queries possible during a snapinstall?

2009-11-29 Thread Shalin Shekhar Mangar
On Sun, Nov 29, 2009 at 9:58 PM, athir nuaimi wrote: > I have a master and slave setup for solr. The slave gets updates by using > snappuller and then snapinstaller.The installer reports that is takes > about 75 seconds to install the new index. During that time, are (web) > clients able t

Re: why is XMLWriter declared as final?

2009-11-29 Thread Mattmann, Chris A (388J)
Hi Hoss, What I meant by the sentence is actually it's a good thing to work on it now because SOLR is in "dev" stage, and not in "pre-release" or "feature freeze" state, as indicated by the *-dev on the release #... Cheers, Chris On 11/29/09 3:55 PM, "Chris Hostetter" wrote: I don't really u

Child entity not getting index using DIH

2009-11-29 Thread Gupta, Saurabh
Hi, I am using Solr to index two database tables with a very simple relationship. Table 1: PRODUCT has ID as PK Table 2: VERSION has ID as PK and PRODUCT_ID as PK There is a 1:m relationship between PRODUCT AND VERSION. When I run full-import, for some reason only 1 row in VERSION table is inde

Re: Retrieving large num of docs

2009-11-29 Thread Chris Hostetter
: I am using Solr1.4 for searching through half a million documents. The : problem is, I want to retrieve nearly 200 documents for each search query. : The query time in Solr logs is showing 0.02 seconds and I am fairly happy : with that. However Solr is taking a long time (4 to 5 secs) to return

Re: Date ranges for indexes constructed outside Solr

2009-11-29 Thread Chris Hostetter
: 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 I would suggest that you use SOlr in "embedded" mode to build your indexes -- that way you can insure schema compatibility of the index generated with

Re: why is XMLWriter declared as final?

2009-11-29 Thread Chris Hostetter
: response. I want my MLT docs to have only 2 fields, but I need my main docs : fl to have all fields. ... : -- It'd be great to let components have control over their fl value instead : of having a global fl value for all doc lists within a writer? Mmmm yeah, this is a big failing of

Re: why is XMLWriter declared as final?

2009-11-29 Thread Chris Hostetter
: 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. I don't really understand what you mean by this sentence ... but i get the impression that you are saying we shouldn't attempt anythign too major just bec

Re: comparing index-time boost and sort in the case of a date field

2009-11-29 Thread Anil Cherian
Hi Eric, David, Thank you for the mail. I have a requirement where I need to display records with more recent values for approval_dt to come first when a query is made. I thought of approaching this in 2 different ways:- 1. SORTING /select/?q=water%0D%0A&version=2.2&start=0&rows=10&indent=on&fl=a

queries possible during a snapinstall?

2009-11-29 Thread athir nuaimi
I have a master and slave setup for solr. The slave gets updates by using snappuller and then snapinstaller.The installer reports that is takes about 75 seconds to install the new index. During that time, are (web) clients able to do queries to the slave? If not, is that a strategy that

Connection reset errors during commits, optimize

2009-11-29 Thread smock
Hello, I'm receiving a java.net.SocketException (see below) on searches, during updates to my index. I'm running a distribued index with 3 shards, each shard has about 3M docs. I add documents in batches of 100, commit after 50K updates, and optimize nightly. The errors happen intermittently du

Re: Trouble Configuring WordDelimiterFilterFactory

2009-11-29 Thread Rahul R
Steve, My settings for both index and query are : Let me give an example. Suppose I have the following 2 documents: Document 1(Text Field): Bridge-Diode .355 Volts Document 2(Text Field): Bridge-Diode 355 Volts Requirement : Search for ".355" should retrieve only document 1 (Not happening now) R