Re: setQuery in SolrJ

2013-09-02 Thread Shawn Heisey
On 9/2/2013 5:53 AM, Sergio Stateri wrote: > How can I looking for an exact phrase in query.setQuery method (SolrJ)? > > Like this: > > SolrQuery query = new SolrQuery(); > query.setQuery( "(descricaoRoteiro: BPS 8D BEACH*)" ); > query.set("start", "200"); > query.set("rows", "10"); > query.addFi

Re: setQuery in SolrJ

2013-09-02 Thread François Schiettecatte
Shouldn't the search be more like this if you are searching in the 'descricaoRoteiro' field: descricaoRoteiro:(BPS 8D BEACH*) or in your example you have a space in between 'descricaoRoteiro' and 'BPS': descricaoRoteiro:BPS 8D BEACH* François On Sep 2, 2013, at 8:08 AM, Dmitr

Re: setQuery in SolrJ

2013-09-02 Thread Dmitry Kan
Hi, What's your default query field in solrconfig.xml? [WHAT IS IN HERE?] I think what's happening is that the query: (descricaoRoteiro: BPS 8D BEACH*) gets interpreted as: descricaoRoteiro:BPS (8D BEACH*) then on the (8D BEACH*) a default field name is applied. You can use debugQuery para