faceted search - SOLR multiple facet w query -


i need facet sorl based on multiple categories, 3 categorise exact. issue have need different facet seperate queries, i'm trying determine if can one. in essense i'd filter.query instead of count, i'd values of matches.

the problem im matchign against multiple fields same value, lets field1=*bah* or field2=*bah* or field3=*bah* , facet on field1,field2, , field3

the query return docs who's field match, on facet, field1, doesnt include matchign field1 bah.. includes docs matched field2 , field3, who's field1 value not bah.

id use fq={!tag} facet.field{!ex} produce facets of field1 field1 matching values, facet 2 withoutly field2 matchign value.. , on.

is possible 1 query in solr?

here basic setup

<document>   <field1>bah boo</field1>   <field2>bah bing</field2>   <field3>boo bar</field3> </document> <document>   <field1>bar boo</field1>   <field2>bah bong</field2>   <field3>bah bar</field3> </document> <document>   <field1>bar boo</field1>   <field2>ding bah</field2>   <field3>bog bar</field3> </document> <document>   <field1>ban bah</field1>   <field2>ban bing</field2>   <field3>bbah bar</field3> </document> 

and i'd return

<facets>    <field1>      <str>bah boo</str>      <str>ban bah</str>    </field1>    <field2>      <str>bah bing</str>      <str>bah bong</str>      <str>ding bah</str>    </field2>    <field3>      <str>bah bar</str>      <str>bbah bar</str>    </field3> </facets> 

if include highlighting along faceting, actual matches returned in highlighting structure. won't give number of matches, however, , give matches rows returned query. actually, i'm not sure need use faceting @ you're trying here.

i wrong, question sounds similar one: how return column matched query in solr..?

hope helps.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -