Repository navigation
Adding support for 'match_by_source' when paired with SearchEngineFileIndexer. - #34
Open
BrendonKoz wants to merge 2 commits into
Open
BrendonKoz wants to merge 2 commits into
BrendonKoz wants to merge 2 commits into
Conversation
…SearchEngineFileIndexer to expose direct links in search results to the matching files themselves instead of the page the file belongs to.
…rouping or filtering, the document also needs to have associated fields for that - added that back in.
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.
SearchEngineFileIndexer currently sets the matching index of a file to the public ProcessWire $page that a document is uploaded to. When dealing with extremely long pages that files are only provided via a hyperlink, identifying where the resulting textual match came from is often near impossible. This implementation attempts a non-breaking change from the current implementation that offers the ability to expose, when in concert with the SearchEngineFileIndexer, a direct document result in the search results when a match occurs (and skip the $page if itself does not match the search terms).