To do this I think you'll need a custom snippeting 
function<https://docs.marklogic.com/guide/search-dev/query-options#id_61707> 
with custom 
highlighting<https://docs.marklogic.com/guide/search-dev/highlight#id_79734>.

Sam Mefford
Senior Engineer
MarkLogic Corporation
[email protected]<mailto:[email protected]>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>

This e-mail and any accompanying attachments are confidential. The information 
is intended
solely for the use of the individual to whom it is addressed. Any review, 
disclosure, copying,
distribution, or use of this e-mail communication by others is strictly 
prohibited. If you
are not the intended recipient, please notify us immediately by returning this 
message to
the sender and delete all copies. Thank you for your cooperation.


On 6/14/2016 7:34 AM, Erik Hennum wrote:
Hi, Tabish:

This might not be what you're asking but...

If you want to turn off the facet output for a range index, set the facet 
attribute or subproperty to false:

http://docs.marklogic.com/guide/search-dev/appendixa#id_42752

If you want to prefer other elements or properties to properties with a range 
index, used preferred-matches:

http://docs.marklogic.com/guide/search-dev/appendixa#id_50098

If you need to implement a custom snippeting function that skips a blacklist of 
elements or properties, see:

http://docs.marklogic.com/guide/search-dev/query-options#id_58295

If none of that helps, please provide a specific example of what the current 
and desired output.


Erik Hennum

________________________________
From: 
[email protected]<mailto:[email protected]>
 
[[email protected]<mailto:[email protected]>]
 on behalf of ShamsTabish Sheikh 
[[email protected]<mailto:[email protected]>]
Sent: Tuesday, June 14, 2016 4:49 AM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] Avoiding Facets in search:snippet highlight


Hello team,
    I'm are trying to display the search keyword matches to the user in our app.
I have used search:snippet to highlight the matches, in some cases facet values 
are appearing in the results which we don't want, please suggest a way to avoid 
facet values in search:highlight.

Thanks & Regards,
Tabish.



_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to