Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fulltext search does not work in code section #4282

Closed
zden2ksobotka opened this issue Jun 3, 2023 · 6 comments
Closed

Fulltext search does not work in code section #4282

zden2ksobotka opened this issue Jun 3, 2023 · 6 comments
Labels

Comments

@zden2ksobotka
Copy link

zden2ksobotka commented Jun 3, 2023

Describe the Bug

When inserting a page edited in a markdown editor with embedded syntax code on multiple lines (three back apostrophes are used in markdown). After the page is saved, the markdown syntax looks ok. But a Full-text search is unable to find any result in the code section.

Steps to Reproduce

  1. Markdown editor
  2. Insert markdown syntax:
# Some headline
Some example code: 
```
rpm -i ZzZzZz   # example of text in which fulltext search will not be able to find anything.
ls -la
```

Expected Behaviour

Fulltext search in BookStack sites will be able to find string "ZzZzZz"

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.05

PHP Version

No response

Hosting Environment

Debian 11, php8.2

@esakkiraja100116
Copy link
Contributor

image

@zden2ksobotka I can't able to find that issue. Can you please provide any screenshots like this ?

@zden2ksobotka
Copy link
Author

zden2ksobotka commented Jun 4, 2023

Sorry, at first I thought it was because of the back apostrophes. But try this.:

```
rpm -i ZzZzZz   # example of text in which fulltext search will not be able to find anything.
ls -la
echo "deb [arch=amd64] http://something.com/apt-stable/ $CODENAME main"
```

I'm attaching screenshots:
Snímek obrazovky z 2023-06-04 10-44-44
Snímek obrazovky z 2023-06-04 10-45-00
Snímek obrazovky z 2023-06-04 10-45-12
Snímek obrazovky z 2023-06-04 10-45-34

@esakkiraja100116
Copy link
Contributor

@zden2ksobotka So apt-stable is not listed in the last snap right ?

@zden2ksobotka
Copy link
Author

The Full-text search in Booksctack has probably trouble finding strings with hyphens or braces. Nothing more.

@esakkiraja100116
Copy link
Contributor

can you put double quotes over there ?

@zden2ksobotka
Copy link
Author

You're right! Solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants