Re: improving score of result set

2012-10-29 Thread yunfei wu
ar results from same site), consider using "field collapsing". Thanks, Yunfei Wu On Mon, Oct 29, 2012 at 12:28 PM, Alexander Aristov < alexander.aris...@gmail.com> wrote: > You absolutely follow my problem. I want to put Obama from espn atop just > because this is exceptional and

Re: improving score of result set

2012-10-29 Thread yunfei wu
Besides changing the scoring algorithm, what about "Field Collapsing" - http://wiki.apache.org/solr/FieldCollapsing - to collapse the results from same website url? Yunfei On Mon, Oct 29, 2012 at 12:43 AM, Alexander Aristov < alexander.aris...@gmail.com> wrote: > Hi everybody, > > I have a ques

Re: How to Sort in a Different Way

2012-01-22 Thread yunfei wu
what kind of new sorting ways you want? If you want to change Lucene's score of how relevant the result is, you may play with the boosting. If you just want to sort on fields, you can use "sort=fieldname" to sort on string, integer, date fields. Yunfei On Sat, Jan 21, 2012 at 8:39 AM, Bing Li

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

2012-01-12 Thread yunfei wu
I guess you probably run into the issue between different date value format in your oracle db and in solr field. Solr only expects XML date value in UTC format - http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html. You might need to consider DateFormatTransformer - http://wiki.

Re: DeleteByQuery and date filter

2011-12-20 Thread yunfei wu
is it caused by space which should be encoded as %20? Yunfei On Tue, Dec 20, 2011 at 1:05 AM, darul wrote: > Hello, > > I have the following issue when using deleteByQuery, it works fine with > simple filters: > > > > and fail when using date filter > > > > Can you help me ? I have tried a lot

Re: Copy in multivalued field and faceting

2011-12-14 Thread yunfei wu
t as a preface, I don't see why copyField has anything > to do with your problem, you'd get the same results faceting > on the title field, assuming identical analyzer chains. > > Faceting on a text field is iffy, it can be quite expensive. What you'd > get in the end,

Re: Copy in multivalued field and faceting

2011-12-14 Thread yunfei wu
Sounds like working by carefully choosing tokenizer, and then use facet.sort and facet.limit parameters to do faceting. Will see any expert's comments on this one. Yunfei On Wed, Dec 14, 2011 at 12:26 AM, darul wrote: > Hello, > > Field for this scenario is "Title" and contains several words.

Re: How to get SolrServer within my own servlet

2011-12-13 Thread yunfei wu
Just curious, sounds like you try to deploy your servlet with Solr support, why don't you just deploy you app as separate Sevlet with the Solr war in the server, then let your servlet send requests to Solr? This will bring much benefit in maintaining your app with Solr support. Yunfei On Tuesday