On May 28, 2008, at 10:41 AM, Bram de Jong wrote:
a new user here. I will be using solr to power the search over at
freesound ( http://freesound.iua.upf.edu ).

Welcome!  Cool use of Solr too.

1. I have a minor remark about the inconsistencies in the
query-parameter definitions... Sometimes multiple fields are given
with comma/space-separated values, sometimes they are given by
repeating the parameter:
sort=field1,field2 desc,field3
but
facet.field=field1&facet.field=field2
This is pretty confusing to first-hand users! :-)

Yeah, it is confusing. But we have to be careful with order. I don't believe you can rely on the order of same named request parameters (right?), so sort needs to be a list where order matters. Whereas with facet.field, order does not matter.

2. two questions about the query syntax:

is
   tag:(bass drum)
the same as:
   tag:bass OR tag:drum
or the same as:
   tag:bass AND tag:drum
or neither?

Using the standard Solr/Lucene query parser, tag:(bass drum) will use the operator specified in schema.xml, and it defaults to OR.

is "+bass +drum" essentially the same as "bass AND drum" ?

yes, exactly the same.

I'm working on a query/parameter builder in python.

Cool deal. Might be worth collaborating with the pysolr project here: <http://code.google.com/p/pysolr/> so as to not duplicate efforts.

        Erik

Reply via email to