You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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...
Activity
juliusknorr commentedon Apr 17, 2018
cc @xh3n1 @daita
ArtificialOwl commentedon May 10, 2018
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:
When improving the search, in the Provider class:
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.
Aesculapius commentedon Jul 18, 2018
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...
juliusknorr commentedon Jul 18, 2018
@Aesculapius General search improvements are tracked in #286
juliusknorr commentedon Jun 16, 2020
Already done with #885