Re: Solr boolean operators

2011-01-13 Thread dante stroe
To my understanding: in terms of the results that will be matched by your
query ... it's the same. In terms of the score of the results  no,
since, if you are using the first query, the documents that will match both
the "a" and the "b" terms, will match higher then the ones matching just the
"a" term.

On Thu, Jan 13, 2011 at 3:29 PM, Xavier Schepler <
xavier.schep...@sciences-po.fr> wrote:

> Hi,
>
> with the Lucene query syntax, is :
>
> a AND (a OR b)
>
> equivalent to :
>
> a
>
> (absorption)
>
> ?
>


Re: FunctionQuery plugin propieties

2011-01-12 Thread dante stroe
Nevermind, I found it. You can add xml children to your plugin declaration
in solrconfig.xml and then retrieve them by casting the namedList arguments
received by your plugin at initialitzaion to SolrParams.

On Tue, Jan 11, 2011 at 10:28 AM, dante stroe  wrote:

> Hi,
>
>Is there any way one can define proprieties for a function plugin
> extending the ValueSourceParser inside solrconfig.xml (as one can do with
> the "defaults" attribute for a query parser plugin inside the request
> handler)?
>
> Thanks,
> Dante
>


FunctionQuery plugin propieties

2011-01-11 Thread dante stroe
Hi,

   Is there any way one can define proprieties for a function plugin
extending the ValueSourceParser inside solrconfig.xml (as one can do with
the "defaults" attribute for a query parser plugin inside the request
handler)?

Thanks,
Dante


Lucene Scorer Extension?

2011-01-07 Thread dante stroe
Hello,

 What I am trying to do is build a personalized search engine. The aim
is to have the resulting documents' scores depend on users' preferences.
I've already built some Solr plugins (request handlers mainly), however I am
not sure that what I am trying to do can be achieved by a plugin.
In short, for each query, for each document, I would like to multiply the
relevance score of each document(at scoring time of course) by the result of
a function between some of document's fields values and the user's
preferences (these users preferences will most likely be loaded in memory
when the plugin initializes). Of course, I need a new request handler to
take the userID as a query parameter, but I am not sure on how to access
each document at scoring time in order to update the score based on
his preferences. Any ideas? (I have looked over
this
and after
looking at the code as well, it doesn't look so trivial ... has anybody else
tried something similar?)

Cheers,
Dante


Define your own function query

2011-01-06 Thread dante stroe
Hello,

   I would like to know if it is possible to define your own function query
(like a plugin, instead of the already defined ones in
here)
that I could later on use as insde "bf"? If so which is the class That I am
supposed to extend?

thank you,
Dante