art-w / sherlodoc

Fuzzy type search for OCaml documentation
MIT License
70 stars 6 forks source link

Constructors and record fields are indexed under an unconventional name #12

Open art-w opened 7 months ago

art-w commented 7 months ago

For example, it's not possible to search for Seq.Cons or Stdlib.contents as they are indexed under the invalid name Seq.node.Cons and Stdlib.ref.contents :

https://doc.sherlocode.com/?q=Seq%20Cons https://doc.sherlocode.com/?q=Stdlib%20contents

EmileTrotignon commented 7 months ago

This seems to be fixed by https://github.com/art-w/sherlodoc/pull/23 on the online version, but not in master, your link does not show the issue anymore.

art-w commented 7 months ago

Yes the search works a lot better with #23 but the names presented to users are still unconventional / invalid OCaml syntax :)