You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by jyn7 <jy...@gmail.com> on 2011/10/26 22:03:54 UTC

DisMax search

Hi,

I am using a dismax search and limiting the query parameters using qf:
/solrbgp/select/?facet=true&qf=memnum&q=%229065%22&deftype=dismax&start=0&rows=10

My understanding is SOLR should now search only the memnum field for an
exact match of "9065", since there is no data with memnum 9065 I should be
getting an empty result set, but instead the result that comes up has 9065
in another indexed string field(email) and not the memnum field.


How do I limit the search to one single field?

Thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/DisMax-search-tp3455671p3455671.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: DisMax search

Posted by jyn7 <jy...@gmail.com>.
Sorry my bad :(. Thanks for the help. It worked. I completely overlooked the
defType.

--
View this message in context: http://lucene.472066.n3.nabble.com/DisMax-search-tp3455671p3458454.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: DisMax search

Posted by Ahmet Arslan <io...@yahoo.com>.
> I am searching for 9065 , so its not
> about case sensitivity. My search is
> searching across all the field names and not limiting it to
> one
> field(specified in the qf param and using deftype dismax)

By saying case sensitivity, Erik was referring def*T*ype parameter itself. (not the value of query)

http://wiki.apache.org/solr/CommonQueryParameters#defType

Re: DisMax search

Posted by jyn7 <jy...@gmail.com>.
I am searching for 9065 , so its not about case sensitivity. My search is
searching across all the field names and not limiting it to one
field(specified in the qf param and using deftype dismax)

--
View this message in context: http://lucene.472066.n3.nabble.com/DisMax-search-tp3455671p3456716.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: DisMax search

Posted by Erik Hatcher <er...@gmail.com>.
Maybe a case sensitive issue?  defType it should be. 

   Erik

On Oct 26, 2011, at 16:03, jyn7 <jy...@gmail.com> wrote:

> Hi,
> 
> I am using a dismax search and limiting the query parameters using qf:
> /solrbgp/select/?facet=true&qf=memnum&q=%229065%22&deftype=dismax&start=0&rows=10
> 
> My understanding is SOLR should now search only the memnum field for an
> exact match of "9065", since there is no data with memnum 9065 I should be
> getting an empty result set, but instead the result that comes up has 9065
> in another indexed string field(email) and not the memnum field.
> 
> 
> How do I limit the search to one single field?
> 
> Thanks.
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/DisMax-search-tp3455671p3455671.html
> Sent from the Solr - User mailing list archive at Nabble.com.