: I'm trying to create the boost query (bq parameter) effect with the standard : request handler. Unfortunately, going to the dismax handler isn't really an : option for me, so I'm trying to create a similar effect.
as of SOlr 1.3 -- the "SearchHandler" (which superclasses and replaces the old StandardRequestHandler and the DisMaxRequestHandler) supports the "bq" param direclty ... so you can just add a bq param to your request and it will do what you want. If you have to stick with 1.2 for some reason... : I have an integer field, 'searchTier', that sort of needs to be factored : into every query. Something like: : : q=name:something AND (searchTier:1^100 OR searchTier:2^50 OR : searchTier:3^25) : : However, if a document has no tier, it should still turn up in the results, : just at the bottom. Currently it does not. I had been playing around with : this a couple months ago, and it worked as desired back then. But after the : 1.3 release, the functionality seems to have changed. in all versions of Solr that query would have required that searchTier contain one of the values in the set (1,2,3) ... if you thought it was working before, trust me: something else was happening. what you wante would have been something like... +name:something (searchTier:1^100 searchTier:2^50 searchTier:3^25) ...note the "+" indicating that the name:something clause is required, and no modifier in from the the parems indicating thta everything in there is optional. : I've tried several different ways to get around this: : q=name:something AND (searchTier:1^100 OR searchTier:2^50 OR searchTier:3^25 : OR searchTier:[* TO *]) if you *must* use the AND/OR keywords, the only way to do something like this would be... name:something AND (*:* OR searchTier:1^100 OR searchTier:2^50 ...) -Hoss