hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.11k stars 1.05k forks source link

Search keywords function not working #1819

Closed bing-h closed 5 months ago

bing-h commented 10 months ago

I deploy by docker compose,the compose file content is

version: "3"
services:
  database:
    image: postgres:11.6-alpine
    environment:
      - POSTGRES_USER=codimd
      - POSTGRES_PASSWORD=change_password
      - POSTGRES_DB=codimd
    volumes:
      - "database-data:/var/lib/postgresql/data"
    restart: always
  codimd:
    image: hackmdio/hackmd:2.4.2
    environment:
      - CMD_DB_URL=postgres://codimd:change_password@database/codimd
      - CMD_USECDN=false
    depends_on:
      - database
    ports:
      - "3000:3000"
    volumes:
      - upload-data:/home/hackmd/app/public/uploads
    restart: always
volumes:
  database-data: {}
  upload-data: {}

and I export database data from old version 2.3.1, and import to 2.4.2, but I found the function Search keyword edittext can not input

image

I have checked the database data, and found if I delete the column history from ”User" table, the Search Keywords work fine, but is not a solution. Hope somebody help me to fix it.

jcorert commented 5 months ago

I'm also running into this issue. It appears there's no way to search notes by content?

jackycute commented 5 months ago

Hi @bing-h and @jcorert, Currently, there is no way to search notes by content, but you can search by note title and tags.

jackycute commented 5 months ago

I deploy by docker compose,the compose file content is

version: "3"
services:
  database:
    image: postgres:11.6-alpine
    environment:
      - POSTGRES_USER=codimd
      - POSTGRES_PASSWORD=change_password
      - POSTGRES_DB=codimd
    volumes:
      - "database-data:/var/lib/postgresql/data"
    restart: always
  codimd:
    image: hackmdio/hackmd:2.4.2
    environment:
      - CMD_DB_URL=postgres://codimd:change_password@database/codimd
      - CMD_USECDN=false
    depends_on:
      - database
    ports:
      - "3000:3000"
    volumes:
      - upload-data:/home/hackmd/app/public/uploads
    restart: always
volumes:
  database-data: {}
  upload-data: {}

and I export database data from old version 2.3.1, and import to 2.4.2, but I found the function Search keyword edittext can not input image I have checked the database data, and found if I delete the column history from ”User" table, the Search Keywords work fine, but is not a solution. Hope somebody help me to fix it.

Maybe you can try the latest version?

jackycute commented 5 months ago

Feel free to re-open if you can reproduce.