Hello all,
Please have a look at this url :
http://localhost:8983/solr/select?q=bob+david&facet=true&facet.field=firstname&facet.field=lastname&facet.field=company&facet.mincount=1
I'm searching for David and Bob and I would like their relevant information
such as first name, last name and company to be facet. I only have one of the
fields stored when I defined them under
schema file and that field is the personid ( as I only require that data to be
visible on it response).
Please have a look at the xml file I have sent...
I have 4 hits back with unordered personid. and also some facet data... my
question is:
david was faceted as 3... how one could map any of these personids to the right
david ??
Does the end user has to click on the facets and make another query ?
many thanks for any suggestions
ak
faceting and unique ids
_________________________________________________________________
Invite your Facebook friends to chat on Messenger
http://clk.atdmt.com/UKM/go/101719649/direct/01/
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int><lst name="params"><str name="facet">true</str><str name="facet.mincount">1</str><str name="q">bob david</str><arr name="facet.field"><str>firstname</str><str>lastname</str><str>company</str><str>functionalarea</str></arr></lst></lst><result name="response" numFound="4" start="0"><doc><str name="personid">2</str><date name="timestamp">2008-07-29T13:17:52,234Z</date></doc><doc><str name="personid">1</str><date name="timestamp">2008-07-29T13:17:50,234Z</date></doc><doc><str name="personid">4</str><date name="timestamp">2008-07-29T13:23:45,609Z</date></doc><doc><str name="personid">3</str><date name="timestamp">2008-07-29T13:21:27,859Z</date></doc></result><lst name="facet_counts"><lst name="facet_queries"/><lst name="facet_fields"><lst name="firstname"><int name="david">3</int><int name="dylan">1</int></lst><lst name="lastname"><int name="gray">2</int><int name="bob">1</int><int name="smith">1</int></lst><lst name="company"><int name="company">1</int><int name="company6666">1</int><int name="hat">1</int><int name="red">1</int><int name="suse">1</int></lst><lst name="functionalarea"><int name="director">3</int><int name="director22">1</int></lst></lst><lst name="facet_dates"/></lst>
</response>