서드파티가 게시판 검색 과정에 영향을 줄 수 있도록 하는 기반#1957
Merged
1 commit merged intoSep 5, 2016
Merged
Conversation
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
document.getDocumentList에 before, after 트리거를 추가하여 서드파티 자료가 검색 결과를 조작할 수 있도록 합니다.
이것을 이용하면 XE에서 자체 제공하는
LIKE %검색어%쿼리가 아닌 다른 방식으로 게시판 검색을 수행하거나, 검색 옵션을 변경하거나, 검색 결과를 캐싱하는 등의 기능을 구현하여 대규모 사이트는에서 상당한 성능 향상을 얻을 수 있게 됩니다.before 트리거에서는
$obj->use_alternate_output변수를 사용하여 검색 결과 전체를 override할 수도 있습니다. after 트리거에서는 검색 결과에서 특정 문서를 제외하거나 추가하는 등의 기능을 구현할 수 있습니다.해당 트리거를 활용하는 모듈이 없는 사이트에는 아무 영향도 주지 않습니다.