Code Monkey home page Code Monkey logo

Comments (7)

cboxdoerfer avatar cboxdoerfer commented on July 1, 2024 2

Hi,
yes this issue is already known to me. I just haven't figured out how to deal with it properly.
Currently it works just like in Everything: items appear multiple times.

So here are the ways I can think of how this can be handled:

  1. leave it as it is, i.e. if you include a sub-directory of an already included directory you get duplicates
  2. don't allow the inclusion of sub-directories of already included directories (might cause problems when I add support to watch directories for changes)
  3. just don't show duplicates (maybe configurable with a config entry)

from fsearch.

dufferzafar avatar dufferzafar commented on July 1, 2024 2

I'm facing this too and I too vote for the 3rd option.

from fsearch.

erfanio avatar erfanio commented on July 1, 2024 1

The third one sounds the most reasonable to me.
It's a small problem anyway, so it might be more useful to spend time on other stuff but that's just my opinion.

from fsearch.

cboxdoerfer avatar cboxdoerfer commented on July 1, 2024 1

@aindriu80 the easiest solution is to simply remove one of the redundant included folders you have in the database configuration. You likely have both / and /home/$user included. So disabling/removing the /home/$user entry will fix the issue.

Like I said in an earlier comment, preventing such duplicates isn't easy, because all solutions have downsides. For example allowing the user to include the same folders (or parent-child combos) and just hiding the duplicates will increase memory usage and will slow down either the scan process or the search performance.

Hence I'm actually quite happy with current approach, because it simplifies the code a lot.

from fsearch.

pauljurczak avatar pauljurczak commented on July 1, 2024

I freshly installed FSearch on Ubuntu 18.04, the only included directory is / and I'm getting search results in duplicate. The annoying thing is that on another system I have the same FSearch preferences set and duplicates are gone. I did something there a few months ago, but I don't remember what.

I would appreciate any clues.

from fsearch.

Lanthanus avatar Lanthanus commented on July 1, 2024

I would understand that fsearch shows duplicates if there is a symlink pointing to the folder, but strangely, if I search by the original path it ALSO shows every folder/file.
So the following searches deliver the same (duplicate) results although I would only expect duplicates in the second case:
/mnt/data/documents/
/home/user/documents/ (symlink to the folder above)

from fsearch.

aindriu80 avatar aindriu80 commented on July 1, 2024

I'm having the same duplicate problem, searching for .vimrc and get 8 results.. 2 duplicates for every answer.

2022-05-04_09-50

from fsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.