boost a document which has a field not empty

2011-09-21 Thread Zoltan Altfatter
Hi,

I have one entity called organisation. I am indexing their name to be able
to search afterwards on their name.
I store also the website of the organisation. Some organisations have a
website some don't.
Can I achieve that when searching for organisations even if I have a match
on their name I will show first those which have a website.

Thank you.

Regards,
Zoltan


Re: boost a document which has a field not empty

2011-09-21 Thread Zoltan Altfatter
Yes, I am using edismax and the bq parameter did the trick. Thanks a lot.

On Wed, Sep 21, 2011 at 3:59 PM, Ahmet Arslan  wrote:

> > I have one entity called organisation. I am indexing their
> > name to be able
> > to search afterwards on their name.
> > I store also the website of the organisation. Some
> > organisations have a
> > website some don't.
> > Can I achieve that when searching for organisations even if
> > I have a match
> > on their name I will show first those which have a
> > website.
>
> Which query parser are you using? lucene? (e)dismax?
>
> If lucene (default one), you can add an optional clause to your query:
>
> &q=+(some query) website:[* TO *]^10 (assuming you have OR as default
> operator)
>
> If dismax, there is a bq parameter which accepts lucene query syntax
> &bq=website:[* TO *]^10
>
> http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29
>


return distance in geo spatial query

2011-07-14 Thread Zoltan Altfatter
Hi,

Would be interested in the status of the development in returning the
distance in a spatial query?
I would need the distance to be returned but also would need the
document score which is related to other criteria.

I am using solr 3.1.

Zoltan