Re: how to selectively sort records keeping some at the bottom always.. ?

2009-08-30 Thread Preetam Rao
Thanks Yonik. It was very useful. On Sat, Aug 29, 2009 at 3:11 AM, Yonik Seeley wrote: > On Thu, Aug 27, 2009 at 10:29 AM, Preetam Rao > wrote: > > Hi, > > If I have documents of type a, b and c but when I sort by some criteria, > > lets say date, > > can I make doc

how to selectively sort records keeping some at the bottom always.. ?

2009-08-27 Thread Preetam Rao
Hi, If I have documents of type a, b and c but when I sort by some criteria, lets say date, can I make documents of kind c always appear at the bottom ? So effectively I want one kind of records always appear at the bottom since they don't have valid data, whether sort is ascending or descending;

Re: performance implications on using lots of values in fq

2008-07-24 Thread Preetam Rao
I don't have much idea on performance of these many fqs, since I have usually used very small number of fqs. But passing my thoughts hoping it might help. (since I did not see any response :-) a) the filter cache size needs to be more, so that fqs can be cached. If a fq is not in cache, AFAIK, ea

Re: Solr/Lucene search term stats

2008-07-22 Thread Preetam Rao
hi, try using faceted search, http://wiki.apache.org/solr/SimpleFacetParameters something like facet=true&facet.query=title:("web2.0" OR "ajax") facet.query - gives the number of matching documents for a query. You can run the examples in the above link and see how it works.. You can also try u

Re: Filter by Type increases search results.

2008-07-18 Thread Preetam Rao
e, Jul 15, 2008 at 11:10 AM, Norberto Meijome <[EMAIL PROTECTED]> > > wrote: > > > On Tue, 15 Jul 2008 18:07:43 +0530 > > > "Preetam Rao" <[EMAIL PROTECTED]> wrote: > > > > > >> When I say filter, I meant q=fish&fq=type:idea >

Re: Multiple query fields in DisMax handler

2008-07-17 Thread Preetam Rao
l behavior.. --- preetam On Thu, Jul 17, 2008 at 6:21 PM, Preetam Rao <[EMAIL PROTECTED]> wrote: > I see that a QParser takes local params (those given via {!...} )as well as > request params. It sets the lookup chain as local followed be request > params. AFAIK, the request para

Re: Multiple query fields in DisMax handler

2008-07-17 Thread Preetam Rao
host:8983/solr/select?q=*:*&fq={!dismaxL}CA<http://localhost:8983/solr/select?q=*:*&fq=%7B%21dismaxL%7DCA>", >> instead of >> specifying all the qf, pf, etc fields as part of the dismax syntax within >> the query. >> >> Regards, >> Chris >&g

Re: Multiple query fields in DisMax handler

2008-07-17 Thread Preetam Rao
If I understand the question correctly, you can provide init params, default params and invariant params in the appropriate request handler section in solrconfig.xml. So you can create a standard request handler with name dismaxL, whose defType is dismax and set all parameters in defaults section.

Re: Filter by Type increases search results.

2008-07-15 Thread Preetam Rao
OTECTED]> wrote: > > Yes, the same, except for the filter. > > For example: > > http://localhost:8983/solr/select?q=fish > returns: > etc (followed by 2 > docs) > > http://localhost:8983/solr/select?q=fish+type:idea > returns: > ..... (followed

Re: Filter by Type increases search results.

2008-07-15 Thread Preetam Rao
Hi Matt, Other than applying one more fq, is everything else remains same between the two queries, like q and all other parameters ? My understanding is that, fq is an intersection on the set of results returned from q. So it should always be a subset of results returned from q. So if one uses ju

Re: Dismax request handler and sub phrase matches... suggestion for another handler..

2008-07-15 Thread Preetam Rao
AIL PROTECTED]> wrote: > > On Jul 15, 2008, at 4:45 AM, Preetam Rao wrote: > >> What are your thoughts on having one more request handler like dismax, but >> which uses a sub-phrase query instead of dismax query ? >> > > It'd be better to ju

Dismax request handler and sub phrase matches... suggestion for another handler..

2008-07-15 Thread Preetam Rao
Hi, Apologies if you are receiving it second time...having tough time with mail server.. I take a user entered query as it is and run it with dismax query handler. The documents fields have been filled from structured data, where different fields have different attributes like number of beds, num

Re: estimating memory needed for solr instances...

2008-07-10 Thread Preetam Rao
u probably won't want to > enable it even if you *do* sort by something other than score: > > > http://www.nabble.com/try-setting-useFilterForSortedQuery-to-false-td7822871.html#a7822871 > > Cheers, > Chris > > On Wed, Jul 9, 2008 at 12:00 AM, Preetam Rao <[EMAI

Re: estimating memory needed for solr instances...

2008-07-09 Thread Preetam Rao
or). It was > >> suggested having the RAM is enough and the OS will cache the files as > >> needed to give you the performance boost needed. > >> > >> If I misread the thread, please chime in - but it seems having enough > >> RAM is the key to performance.

estimating memory needed for solr instances...

2008-07-09 Thread Preetam Rao
Hi, Since we plan to share the same box among multiple solr instances on a 16gb RAM multi core box, Need to estimate how much memory we need for our application. The index size is on disk 2.4G with close to 3 million documents. The plan is to use dismax query with some fqs. Since we do not sort

Re: Integrate Solr with Tomcat in Linux

2008-07-08 Thread Preetam Rao
set the solr home folder such that- If you are using jndi name for solr.home or command line argument for solr.home, then it will look for conf and lib folders under that folder. If you are not using jndi name, then it looks for solr/conf and solr/lib folders under current directory which is the