Skip to content

Implement support for the fulltextsearch app #449

Closed

Description

@juliusknorr

Deck should integrate with the fulltextsearch app as in making the content of all cards searchable though it.

As a starting point the following data should be added to the search index for each card:

  • Card title
  • Stack name
  • Board name
  • List of labels

An example implementation can be found at https://github.com/nextcloud/bookmarks_fulltextsearch

I would say we can integrate it directly into the deck repo, so we don't have the dependency of installing another app for admins.

Tasks:


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. juliusknorr commented on Apr 17, 2018

    @juliusknorr
    MemberAuthor
  2. ArtificialOwl commented on May 10, 2018

    @ArtificialOwl
    Member

    To index and search in part of content like Card Title, Stack Name and Board Name, I added some method to the IndexDocument and SearchRequest models:

    nextcloud/fulltextsearch@c7173dc
    (setPart() is renamed to addPart())

    This way you can fill small content and identify them when searching. The search result is not complete right now, but it is a start.

    (This are some example, no idea what to index and where)
    When generating a document to index:

    $index = new IndexDocument('deck', id_of_the_card);
    $index->setContent('big content of the card, description or something else ?');
    $index->addPart('card_title', 'content of the card title');
    $index->addPart('stack_name', 'name of the stack');
    $index->addPart('board_name', 'name of the board')
    $index->addTag('tag1');
    $index->addTag('tag2');
    

    When improving the search, in the Provider class:

    public function improveSearchRequest(SearchRequest $request) {
        $request->addTag('tag_to_search');  // this should be managed by the fulltextsearch app
        $request->setParts(['stack_name', 'board_name']);
    }
    

    Beware that, by default, not defining any parts to the SearchRequest will make fulltextsearch to only search within the content (defined by ->setContent), and not in any parts of content.

  3. Aesculapius commented on Jul 18, 2018

    @Aesculapius

    search can be improved but if that topic is developed I'd also vote to enable search in card descriptions. Stack, board or card names can be found by using simple control-F in your browser but you can't do that within the card descriptions...

  4. juliusknorr commented on Jul 18, 2018

    @juliusknorr
    MemberAuthor

    @Aesculapius General search improvements are tracked in #286

  5. juliusknorr commented on Jun 16, 2020

    @juliusknorr
    MemberAuthor

    Already done with #885

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions