Skip to content
Snippets Groups Projects

Search through the filenames

Merged Valery Sizov requested to merge es_search_through_filenames1 into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1000 1000 content = result["_source"]["blob"]["content"]
1001 1001 total_lines = content.lines.size
1002 1002
1003 term = result["highlight"]["blob.content"][0].match(/gitlabelasticsearch→(.*?)←gitlabelasticsearch/)[1]
1003 highlighted_content = result["highlight"]["blob.content"]
1004 term = highlighted_content && highlighted_content[0].match(/gitlabelasticsearch→(.*?)←gitlabelasticsearch/)[1]
  • Author Contributor

    @yorickpeterse The same, it should be ASAP at least in master. I'll merge it right now

  • Valery Sizov Status changed to merged

    Status changed to merged

  • Valery Sizov mentioned in commit 6b522faa

    mentioned in commit 6b522faa

  • yorickpeterse-staging Removed ~149424 label

    Removed ~149424 label

  • Valery Sizov mentioned in commit f68e473a

    mentioned in commit f68e473a

  • Marin Jankovski mentioned in commit f07b26fc

    mentioned in commit f07b26fc

  • Marin Jankovski Mentioned in commit f07b26fc

    Mentioned in commit f07b26fc

  • Please register or sign in to reply
    Loading