Re: dismax request handler without q

2010-07-20 Thread Joe Calderon
try something like this: q.alt=*:*&fq=keyphrase:hotel though if you dont need to query across multiple fields, dismax is probably not the best choice On Tue, Jul 20, 2010 at 4:57 AM, olivier sallou wrote: > q will search in defaultSearchField if no field name is set, but you can > specify in you

Re: dismax request handler without q

2010-07-20 Thread olivier sallou
q will search in defaultSearchField if no field name is set, but you can specify in your "q" param the fields you want to search into. Dismax is a handler where you can specify to look in a number of fields for the input query. In this case, you do not specify the fields and dismax will look in th

Re: dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
I can't put q=keyphrase:hotel in my request using dismax handler. It returns no result. On Tue, Jul 20, 2010 at 1:19 PM, Chamnap Chhorn wrote: > There are some default configuration on my solrconfig.xml that I didn't > show you. I'm a little confused when reading > http://wiki.apache.org/solr/Dis

Re: dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
There are some default configuration on my solrconfig.xml that I didn't show you. I'm a little confused when reading http://wiki.apache.org/solr/DisMaxRequestHandler#q. I think q is for plain user input query. On Tue, Jul 20, 2010 at 12:08 PM, olivier sallou wrote: > Hi, > this is not very clear,

Re: dismax request handler without q

2010-07-19 Thread olivier sallou
Hi, this is not very clear, if you need to query only keyphrase, why don't you query directly it? e.g. q=keyphrase:hotel ? Furthermore, why dismax if only keyphrase field is of interest? dismax is used to query multiple fields automatically. At least dismax do not appear in your query (using query