Solr faceted search not working for a certain request handler

2014-03-17 Thread vit
We have a big Solr search application where I need to add a faceted search
for a certain request handler. 
And it does not work whereas for select handler it does.  
I tried to find something in the configuration but could not. 
If possible, please let me know where I should look at to find the reason.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-faceted-search-not-working-for-a-certain-request-handler-tp4124838.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr faceted search not working for a certain request handler

2014-03-17 Thread Shawn Heisey

On 3/17/2014 9:25 AM, vit wrote:

We have a big Solr search application where I need to add a faceted search
for a certain request handler.
And it does not work whereas for select handler it does.
I tried to find something in the configuration but could not.
If possible, please let me know where I should look at to find the reason.


To have any hope of helping, we need more information. These would be 
very helpful:


* When you say does not work what exactly do you mean?
* The query you're sending.
* The definition of the handler that doesn't work.
* The definition of the handler that does work.
* Some idea of what is in your index.
* The facet result from the handler that works.

Thanks,
Shawn



RE: Faceted search not working?

2010-05-25 Thread Birger Lie
Hi,
try

http://localhost:8080/solr/select/?q=YOUR-QUERYfacet=truefacet.field=title


I don't think the bolean fields is mapped to on and off :)


-birger

-Original Message-
From: Ilya Sterin [mailto:ster...@gmail.com] 
Sent: 24. mai 2010 23:11
To: solr-user@lucene.apache.org
Subject: Faceted search not working?

I'm trying to perform a faceted search without any luck.  Result set doesn't 
return any facet information...

http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

I'm getting the result set, but no face information present?  Is there 
something else that needs to happen to turn faceting on?

I'm using latest Solr 1.4 release.  Data is indexed from the database using 
dataimporter.

Thanks.

Ilya Sterin


Re: Faceted search not working?

2010-05-25 Thread Sascha Szott

Hi Birger,

Birger Lie wrote:

I don't think the bolean fields is mapped to on and off :)

You can use true and on interchangeably.

-Sascha




-birger

-Original Message-
From: Ilya Sterin [mailto:ster...@gmail.com]
Sent: 24. mai 2010 23:11
To: solr-user@lucene.apache.org
Subject: Faceted search not working?

I'm trying to perform a faceted search without any luck.  Result set doesn't 
return any facet information...

http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

I'm getting the result set, but no face information present?  Is there 
something else that needs to happen to turn faceting on?

I'm using latest Solr 1.4 release.  Data is indexed from the database using 
dataimporter.

Thanks.

Ilya Sterin




Re: Faceted search not working?

2010-05-25 Thread Jean-Sebastien Vachon
Is the FacetComponent loaded at all? 

requestHandler name=standard class=solr.SearchHandler default=true
  arr name=components
  strquery/str
  strfacet/str
   /arr
/requestHandler


On 2010-05-25, at 3:32 AM, Sascha Szott wrote:

 Hi Birger,
 
 Birger Lie wrote:
 I don't think the bolean fields is mapped to on and off :)
 You can use true and on interchangeably.
 
 -Sascha
 
 
 
 -birger
 
 -Original Message-
 From: Ilya Sterin [mailto:ster...@gmail.com]
 Sent: 24. mai 2010 23:11
 To: solr-user@lucene.apache.org
 Subject: Faceted search not working?
 
 I'm trying to perform a faceted search without any luck.  Result set doesn't 
 return any facet information...
 
 http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title
 
 I'm getting the result set, but no face information present?  Is there 
 something else that needs to happen to turn faceting on?
 
 I'm using latest Solr 1.4 release.  Data is indexed from the database using 
 dataimporter.
 
 Thanks.
 
 Ilya Sterin
 




Re: Faceted search not working?

2010-05-25 Thread Sascha Szott

Hi,

please note, that the FacetComponent is one of the six search components 
that are automatically associated with solr.SearchHandler (this holds 
also for the QueryComponent).


Another note: By using name=components all default components will be 
replaced by the components you explicitly mentioned (i.e., 
QueryComponent and FacetComponent in your example). To avoid this, use 
name=last-components instead.


-Sascha

Jean-Sebastien Vachon wrote:

Is the FacetComponent loaded at all?

requestHandler name=standard class=solr.SearchHandler default=true
   arr name=components
   strquery/str
   strfacet/str
/arr
/requestHandler


On 2010-05-25, at 3:32 AM, Sascha Szott wrote:


Hi Birger,

Birger Lie wrote:

I don't think the bolean fields is mapped to on and off :)

You can use true and on interchangeably.

-Sascha




-birger

-Original Message-
From: Ilya Sterin [mailto:ster...@gmail.com]
Sent: 24. mai 2010 23:11
To: solr-user@lucene.apache.org
Subject: Faceted search not working?

I'm trying to perform a faceted search without any luck.  Result set doesn't 
return any facet information...

http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

I'm getting the result set, but no face information present?  Is there 
something else that needs to happen to turn faceting on?

I'm using latest Solr 1.4 release.  Data is indexed from the database using 
dataimporter.

Thanks.

Ilya Sterin









Re: Faceted search not working?

2010-05-25 Thread Ilya Sterin
Sascha thanks for the response, here is the output...

?xml version=1.0 encoding=UTF-8?
response
  lst name=responseHeader
int name=status0/int
int name=QTime0/int
lst name=params
  str name=wtxml/str
  str name=qtitle:*/str
  str name=fltitle/str
/lst
  /lst
  result name=response numFound=3 start=0
doc
  str name=titleBaseball game/str
/doc
doc
  str name=titleSoccer game/str
/doc
doc
  str name=titleFootball game/str
/doc
  /result
/response


On Mon, May 24, 2010 at 5:39 PM, Sascha Szott sz...@zib.de wrote:
 Hi Ilya,

 Ilya Sterin wrote:

 I'm trying to perform a faceted search without any luck.  Result set
 doesn't return any facet information...

 http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

 I'm getting the result set, but no face information present?  Is there
 something else that needs to happen to turn faceting on?

 No.

 What does http://localhost:8080/solr/select/?q=title:*fl=titlewt=xml
 return?

 -Sascha




Re: Faceted search not working? (RESOLVED)

2010-05-25 Thread Ilya Sterin
Ah, the issue was explicitly specifying components...

arr name=components
  strquery/str
/arr

I don't remember changing this during default install, commenting this
out enabled faceted search component.

Thanks all for the help.

Ilya

On Tue, May 25, 2010 at 10:38 AM, Sascha Szott sz...@zib.de wrote:
 Hi,

 please note, that the FacetComponent is one of the six search components
 that are automatically associated with solr.SearchHandler (this holds also
 for the QueryComponent).

 Another note: By using name=components all default components will be
 replaced by the components you explicitly mentioned (i.e., QueryComponent
 and FacetComponent in your example). To avoid this, use
 name=last-components instead.

 -Sascha

 Jean-Sebastien Vachon wrote:

 Is the FacetComponent loaded at all?

 requestHandler name=standard class=solr.SearchHandler default=true
   arr name=components
       strquery/str
       strfacet/str
    /arr
 /requestHandler


 On 2010-05-25, at 3:32 AM, Sascha Szott wrote:

 Hi Birger,

 Birger Lie wrote:

 I don't think the bolean fields is mapped to on and off :)

 You can use true and on interchangeably.

 -Sascha



 -birger

 -Original Message-
 From: Ilya Sterin [mailto:ster...@gmail.com]
 Sent: 24. mai 2010 23:11
 To: solr-user@lucene.apache.org
 Subject: Faceted search not working?

 I'm trying to perform a faceted search without any luck.  Result set
 doesn't return any facet information...

 http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

 I'm getting the result set, but no face information present?  Is there
 something else that needs to happen to turn faceting on?

 I'm using latest Solr 1.4 release.  Data is indexed from the database
 using dataimporter.

 Thanks.

 Ilya Sterin







Faceted search not working?

2010-05-24 Thread Ilya Sterin
I'm trying to perform a faceted search without any luck.  Result set
doesn't return any facet information...

http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

I'm getting the result set, but no face information present?  Is there
something else that needs to happen to turn faceting on?

I'm using latest Solr 1.4 release.  Data is indexed from the database
using dataimporter.

Thanks.

Ilya Sterin


Re: Faceted search not working?

2010-05-24 Thread Sascha Szott

Hi Ilya,

Ilya Sterin wrote:

I'm trying to perform a faceted search without any luck.  Result set
doesn't return any facet information...

http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title

I'm getting the result set, but no face information present?  Is there
something else that needs to happen to turn faceting on?

No.

What does http://localhost:8080/solr/select/?q=title:*fl=titlewt=xml 
return?


-Sascha



Re: Faceted search not working?

2010-05-24 Thread Erik Hatcher
it's probably because your query isn't matching anything.  try q=title: 
[* TO *], or maybe even simply *:* if you are trying to match all  
documents.


Erik

On May 24, 2010, at 5:11 PM, Ilya Sterin wrote:


I'm trying to perform a faceted search without any luck.  Result set
doesn't return any facet information...

http://localhost:8080/solr/select/? 
q=title:*facet=onfacet.field=title


I'm getting the result set, but no face information present?  Is there
something else that needs to happen to turn faceting on?

I'm using latest Solr 1.4 release.  Data is indexed from the database
using dataimporter.

Thanks.

Ilya Sterin