docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Search does not find anything

Open MaiHeu opened this issue 2 years ago • 1 comments

Operating System: (Windows or Linux or MacOS) Windows

DocFX Version Used: docfx 2.59.2.0 / docfx.console 2.59.2

Template used: (default or statictoc or contain custom template) default

Steps to Reproduce:

  1. Add "_enableSearch" : "true" to globalMetadata
  2. Build and start Project with docfx build docfx.json --serve OR using the nuget package to build, then serve
  3. Search in the upper right for a function name, like ValidatePhoneNumber or ValidatePhoneNumber*

Expected Behavior:

Something shows up when searching, eg. a method name.

Actual Behavior: The Console logs "using Web Worker", however, the search results do not show up, instead the circle is just spinning around , but doesn't find anything.

MaiHeu avatar May 10 '22 11:05 MaiHeu

@schattennarr Check the browser debug console and report any error message.

paulushub avatar Jul 20 '22 23:07 paulushub

Hi @paulushub

I am facing the same issue but my docfx versions is 2.57.2 After typing some query to the search field, the following error is shown in the console: image and loading indicator is spinning infinitely.

ukrainec45 avatar Oct 25 '22 06:10 ukrainec45

@ukrainec45 I could not reproduce it. Please try and see if you can reproduce it on the DocFX's own documentations:

https://dotnet.github.io/docfx/

paulushub avatar Oct 25 '22 07:10 paulushub

I investigated this issue, it wasn't related to docfx but with lunr library version.

ukrainec45 avatar Oct 25 '22 13:10 ukrainec45