Skip to content

Adding support for 'match_by_source' when paired with SearchEngineFileIndexer. - #34

Open
BrendonKoz wants to merge 2 commits into
teppokoivula:masterfrom
BrendonKoz:master
Open

BrendonKoz wants to merge 2 commits into
teppokoivula:masterfrom
BrendonKoz:master

Conversation

@BrendonKoz

Copy link
Copy Markdown

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).

  • Breadcrumbs are still intact so identifying where a matched document resides is still available.
  • Template types are also exposed in the matching document in case a site groups or filters based on the originating template type(s) in the search.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant