olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.89k stars 548 forks source link

how to remove duplicate entries from local json index? #396

Closed monikagupta78 closed 5 years ago

monikagupta78 commented 5 years ago

I have some collections in Jekyll on which I am performing lunr search. Issue is my collections have some common entries/md files so in search for same keyword, it is showing two same results.

Is there a way i can remove same entries (based on a field say title) from the main index?

or handle to remove duplicate entries from search results. I feel first option be ideal.

Any inputs pls.

hoelzro commented 5 years ago

Hi @monikagupta78!

Can you provide some code that demonstrates which version of lunr you're using, and reproduces your issue? That would help us solve your issue more quickly!

olivernn commented 5 years ago

This seems to have gone stale, going to close. I'll gladly take a closer look if you can provide a simple reproduction case for us to look at though.