Re: dismax request handler without q

2010-07-20 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
olivier.sal...@gmail.comwrote:

 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 type). It is set
 in
 your config for your default request handler?

 2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com

  I wonder how could i make a query to return only *all books* that has
  keyphrase web development using dismax handler? A book has multiple
  keyphrases (keyphrase is multivalued column). Do I have to pass q
  parameter?
 
 
  Is it the correct one?
  http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel
 
  --
  Chhorn Chamnap
  http://chamnapchhorn.blogspot.com/
 




-- 
Chhorn Chamnap
http://chamnapchhorn.blogspot.com/


Re: dismax request handler without q

2010-07-20 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 chamnapchh...@gmail.comwrote:

 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 olivier.sal...@gmail.com
  wrote:

 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 type). It is set
 in
 your config for your default request handler?

 2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com

  I wonder how could i make a query to return only *all books* that has
  keyphrase web development using dismax handler? A book has multiple
  keyphrases (keyphrase is multivalued column). Do I have to pass q
  parameter?
 
 
  Is it the correct one?
  http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel
 
  --
  Chhorn Chamnap
  http://chamnapchhorn.blogspot.com/
 




 --
 Chhorn Chamnap
 http://chamnapchhorn.blogspot.com/




-- 
Chhorn Chamnap
http://chamnapchhorn.blogspot.com/


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 the fields specified in its configuration.
However, by default, dismax is not used, it needs to be called help with the
query type parameter (qt=dismax).

In default solr config, you can call ...solr/select?q=keyphrase:hotel if
keyphrzase is a declared field in your schema

2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com

 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 chamnapchh...@gmail.com
 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/DisMaxRequestHandler#q. I think q is for
 plain
  user input query.
 
 
  On Tue, Jul 20, 2010 at 12:08 PM, olivier sallou 
 olivier.sal...@gmail.com
   wrote:
 
  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 type). It is
 set
  in
  your config for your default request handler?
 
  2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com
 
   I wonder how could i make a query to return only *all books* that has
   keyphrase web development using dismax handler? A book has multiple
   keyphrases (keyphrase is multivalued column). Do I have to pass q
   parameter?
  
  
   Is it the correct one?
   http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel
  
   --
   Chhorn Chamnap
   http://chamnapchhorn.blogspot.com/
  
 
 
 
 
  --
  Chhorn Chamnap
  http://chamnapchhorn.blogspot.com/
 



 --
 Chhorn Chamnap
 http://chamnapchhorn.blogspot.com/



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
olivier.sal...@gmail.com wrote:
 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 the fields specified in its configuration.
 However, by default, dismax is not used, it needs to be called help with the
 query type parameter (qt=dismax).

 In default solr config, you can call ...solr/select?q=keyphrase:hotel if
 keyphrzase is a declared field in your schema

 2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com

 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 chamnapchh...@gmail.com
 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/DisMaxRequestHandler#q. I think q is for
 plain
  user input query.
 
 
  On Tue, Jul 20, 2010 at 12:08 PM, olivier sallou 
 olivier.sal...@gmail.com
   wrote:
 
  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 type). It is
 set
  in
  your config for your default request handler?
 
  2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com
 
   I wonder how could i make a query to return only *all books* that has
   keyphrase web development using dismax handler? A book has multiple
   keyphrases (keyphrase is multivalued column). Do I have to pass q
   parameter?
  
  
   Is it the correct one?
   http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel
  
   --
   Chhorn Chamnap
   http://chamnapchhorn.blogspot.com/
  
 
 
 
 
  --
  Chhorn Chamnap
  http://chamnapchhorn.blogspot.com/
 



 --
 Chhorn Chamnap
 http://chamnapchhorn.blogspot.com/




dismax request handler without q

2010-07-19 Thread Chamnap Chhorn
I wonder how could i make a query to return only *all books* that has
keyphrase web development using dismax handler? A book has multiple
keyphrases (keyphrase is multivalued column). Do I have to pass q parameter?


Is it the correct one?
http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel

-- 
Chhorn Chamnap
http://chamnapchhorn.blogspot.com/


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 type). It is set in
your config for your default request handler?

2010/7/20 Chamnap Chhorn chamnapchh...@gmail.com

 I wonder how could i make a query to return only *all books* that has
 keyphrase web development using dismax handler? A book has multiple
 keyphrases (keyphrase is multivalued column). Do I have to pass q
 parameter?


 Is it the correct one?
 http://locahost:8081/solr/select?q=hotelfq=keyphrase:%20hotel

 --
 Chhorn Chamnap
 http://chamnapchhorn.blogspot.com/