Files
opencloud/services/search/pkg/parity
Dominik Schmidt e63b1a2008 test(search): hold both engines to the same order in the parity suite
A Sorting section runs every case against bleve and OpenSearch and compares the order of the matches: size, modification time, track length, year with a second key, the date a photo was taken, a file without the sort value, names in code point order, and the fields that are not sortable. Its rows keep the order of the answer in the README, and the fixtures list the values that are sorted by.
2026-12-03 17:24:17 +01:00
..

Engine parity

Written by the parity suite (UPDATE_SEARCH_PARITY_MATRIX=true go test ./services/search/pkg/parity/), do not edit. Every case runs against bleve and OpenSearch. same? is ✅ when both answer as expected, ❌ known when an engine's divergence is documented in the case (engineOverrides), ❌ when it is not. ✅ stale when every engine answers the expected value although the case still documents a divergence, that override can come out.

Queries

name

Fixtures:

  • new-folder, folder
  • quarterly notes.txt
  • Report.txt
  • Übung.txt
  • a+b.txt
  • c(d).txt
  • e&f.txt
  • v1.2.3.txt
  • foo bar.txt
  • aaaaaaaaaa...edle.txt
Case Query expected bleve OpenSearch same?
NAME-01 new new-folder new-folder new-folder ✅
NAME-02 quarterly quarterly notes.txt quarterly notes.txt quarterly notes.txt ✅
NAME-03 report Report.txt Report.txt Report.txt ✅
NAME-04 name:"*new-folder*" new-folder new-folder new-folder ✅
NAME-05 name:"*w-fol*" new-folder new-folder new-folder ✅
NAME-06 name:"*oo ba*" foo bar.txt foo bar.txt foo bar.txt ✅
NAME-07 name:"*REPORT*" Report.txt Report.txt Report.txt ✅
NAME-08 name:"*übung*" Übung.txt Übung.txt Übung.txt ✅
NAME-09 name:"*ÜBUNG*" Übung.txt Übung.txt Übung.txt ✅
NAME-10 name:"*a+b*" a+b.txt a+b.txt a+b.txt ✅
NAME-11 name:"*c(d)*" c(d).txt c(d).txt c(d).txt ✅
NAME-12 name:"*e&f*" e&f.txt e&f.txt e&f.txt ✅
NAME-13 name:"*v1.2*" v1.2.3.txt v1.2.3.txt v1.2.3.txt ✅
NAME-14 new-folder new-folder new-folder new-folder ✅
NAME-15 *folder* new-folder new-folder new-folder ✅
NAME-16 name:"*foo bar*" foo bar.txt foo bar.txt foo bar.txt ✅
NAME-17 name:"foo bar.txt" foo bar.txt foo bar.txt foo bar.txt ✅
NAME-18 name:"*needle*" aaaaaaaaaa...edle.txt aaaaaaaaaa...edle.txt aaaaaaaaaa...edle.txt ✅
NAME-19 name:"report*" Report.txt Report.txt Report.txt ✅
NAME-20 name:"*report" Report.txt Report.txt Report.txt ✅
NAME-21 name:"Rep*rt.txt" Report.txt Report.txt Report.txt ✅
NAME-22 Name:"*report*" Report.txt Report.txt Report.txt ✅
NAME-23 NAME:"*report*" Report.txt Report.txt Report.txt ✅
NAME-24 name:Rep?rt.txt Report.txt Report.txt Report.txt ✅
NAME-25 name:"*eport" Report.txt Report.txt Report.txt ✅
NAME-26 name:"repor*" Report.txt Report.txt Report.txt ✅
NAME-27 REPORT Report.txt Report.txt Report.txt ✅
NAME-28 name:REPORT Report.txt Report.txt Report.txt ✅
NAME-29 name:"REPORT.TXT" Report.txt Report.txt Report.txt ✅
NAME-30 name:"FOO BAR.TXT" foo bar.txt foo bar.txt foo bar.txt ✅
NAME-31 name:"ÜBUNG.TXT" Übung.txt Übung.txt Übung.txt ✅
NAME-32 name:"folder*" no match no match no match ✅
NAME-33 name:"*new" no match no match no match ✅
NAME-34 name:new new-folder new-folder new-folder ✅
NAME-35 name:"new" new-folder new-folder new-folder ✅
NAME-36 name:"new-folder" new-folder new-folder new-folder ✅
NAME-37 name:"new-*" new-folder new-folder new-folder ✅
NAME-38 name:"new*" new-folder new-folder new-folder ✅
NAME-39 name:new-* new-folder new-folder new-folder ✅
NAME-40 name:"*-folder" new-folder new-folder new-folder ✅
NAME-41 name:"Rep?rt.txt" Report.txt Report.txt Report.txt ✅
NAME-42 name="Report.txt" Report.txt Report.txt Report.txt ✅
NAME-43 name="REPORT.TXT" Report.txt Report.txt Report.txt ✅
NAME-44 name="new" no match no match no match ✅
NAME-45 name="new-folder" new-folder new-folder new-folder ✅
NAME-46 name="foo bar.txt" foo bar.txt foo bar.txt foo bar.txt ✅

extension

Fixtures:

  • report.txt
  • notes.md, MimeType = text/markdown
  • archive, folder
Case Query expected bleve OpenSearch same?
EXTENSION-01 txt report.txt report.txt report.txt ✅
EXTENSION-02 md notes.md notes.md notes.md ✅
EXTENSION-03 name:"*.txt" report.txt report.txt report.txt ✅
EXTENSION-04 report report.txt report.txt report.txt ✅

tags

Fixtures:

  • invoice.txt, Tags = foo-bar
  • memo.txt, Tags = foo
  • spaced.txt, Tags = spaced tag
  • project, folder, Tags = work
  • draft.txt, Path = ./project/draft.txt
  • longtag.txt, Tags = zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzneedle
Case Query expected bleve OpenSearch same?
TAGS-01 name:"*foo-bar*" no match no match no match ✅
TAGS-02 tag:("foo-bar") invoice.txt invoice.txt invoice.txt ✅
TAGS-03 tag:("foo") memo.txt memo.txt memo.txt ✅
TAGS-04 tag:("FOO-BAR") invoice.txt invoice.txt invoice.txt ✅
TAGS-05 tag:("*foo*") invoice.txt, memo.txt invoice.txt, memo.txt invoice.txt, memo.txt ✅
TAGS-06 tag:("spaced tag") spaced.txt spaced.txt spaced.txt ✅
TAGS-07 tag:("*paced ta*") spaced.txt spaced.txt spaced.txt ✅
TAGS-08 tag:("work") project project project ✅
TAGS-09 tag:("zzzzzzzzzzzzzzzzzzzzzzzzzz...zzzzzzzzzzzzzzzzneedle") longtag.txt longtag.txt longtag.txt ✅

title

Fixtures:

  • q1.html, MimeType = text/html, Title = "quarterly report"
Case Query expected bleve OpenSearch same?
TITLE-01 Title:"quarterly report" q1.html q1.html q1.html ✅
TITLE-02 Title:quarterly q1.html q1.html q1.html ✅
TITLE-03 Title:QUARTERLY q1.html q1.html q1.html ✅
TITLE-04 Title:quarterl* q1.html q1.html q1.html ✅
TITLE-05 Title:"*ly rep*" q1.html q1.html q1.html ✅
TITLE-06 title:quarterly q1.html q1.html q1.html ✅
TITLE-07 Title:"QUARTERLY REPORT" q1.html q1.html q1.html ✅
TITLE-08 Title="quarterly report" q1.html q1.html q1.html ✅
TITLE-09 Title="quarterly" no match no match no match ✅

content

Fixtures:

Case Query expected bleve OpenSearch same?
CONTENT-01 Content:report no match no match no match ✅
CONTENT-02 Content:REPORTS monthly.txt monthly.txt monthly.txt ✅
CONTENT-03 Content:"monthly reports" monthly.txt monthly.txt monthly.txt ✅
CONTENT-04 Content:"reports monthly" no match no match no match ✅
CONTENT-05 Content:report* monthly.txt monthly.txt monthly.txt ✅
CONTENT-06 Content:*eport* monthly.txt monthly.txt monthly.txt ✅
CONTENT-07 Content:month* monthly.txt monthly.txt monthly.txt ✅
CONTENT-08 Content:"https://opencloud.example.com/help" links.txt links.txt links.txt ✅
CONTENT-09 Content:"alan@example.org" links.txt links.txt links.txt ✅
CONTENT-10 Content:opencloud links.txt links.txt links.txt ✅

cjk

Fixtures:

  • 报告.txt, Content = "这是一个关于年度销售的中文文档"
  • 说明书.pdf, MimeType = application/pdf, Content = "产品说明与安装步骤"
  • 手册.txt, Content = "学生手册"
  • 图片, folder
  • english.txt, Content = "annual sales report"
Case Query expected bleve OpenSearch same?
CJK-01 Content:中文 报告.txt 报告.txt 报告.txt ✅
CJK-02 Content:中文文档 报告.txt 报告.txt 报告.txt ✅
CJK-03 Content:"中文文档" 报告.txt 报告.txt 报告.txt ✅
CJK-04 Content:销售 报告.txt 报告.txt 报告.txt ✅
CJK-05 Content:说明 说明书.pdf 说明书.pdf 说明书.pdf ✅
CJK-06 name:报告 报告.txt 报告.txt 报告.txt ✅
CJK-07 name:"*报告*" 报告.txt 报告.txt 报告.txt ✅
CJK-08 name:"报告.txt" 报告.txt 报告.txt 报告.txt ✅
CJK-09 报告 报告.txt 报告.txt 报告.txt ✅
CJK-10 说明书 说明书.pdf 说明书.pdf 说明书.pdf ✅
CJK-11 name:图片 图片 图片 图片 ✅
CJK-12 name:"*图片*" 图片 图片 图片 ✅
CJK-13 图片 图片 图片 图片 ✅
CJK-14 Content:学生 手册.txt 手册.txt 手册.txt ✅
CJK-15 Content:手册 手册.txt 手册.txt 手册.txt ✅
CJK-16 Content:生手 手册.txt 手册.txt 手册.txt ✅
CJK-17 name:"报*" 报告.txt 报告.txt 报告.txt ✅
CJK-18 name:"*告*" 报告.txt 报告.txt 报告.txt ✅
CJK-19 name:"*册*" 手册.txt 手册.txt 手册.txt ✅
CJK-20 name:"图?" 图片 图片 图片 ✅
CJK-21 name:"报?.txt" 报告.txt 报告.txt 报告.txt ✅
CJK-22 name:"*报?*" 报告.txt 报告.txt 报告.txt ✅
CJK-23 Content:中文* no match no match no match ✅
CJK-24 Content:*销售* no match no match no match ✅
CJK-25 Content:*文档 no match no match no match ✅
CJK-26 Content:文* 报告.txt 报告.txt 报告.txt ✅
CJK-27 Content:*文* 报告.txt 报告.txt 报告.txt ✅
CJK-28 Content:*文 报告.txt 报告.txt 报告.txt ✅
CJK-29 Content:销* 报告.txt 报告.txt 报告.txt ✅
CJK-30 Content:说* 说明书.pdf 说明书.pdf 说明书.pdf ✅
CJK-31 Content:*明 说明书.pdf 说明书.pdf 说明书.pdf ✅

favorites

Fixtures:

  • starred.txt, Favorites = A1B2-Upper
  • plain.txt
  • keepsakes, folder, Favorites = A1B2-Upper
  • photo.jpg, MimeType = image/jpeg, Path = ./keepsakes/photo.jpg
Case Query expected bleve OpenSearch same?
FAVORITES-01 Favorites:"A1B2-Upper" keepsakes, starred.txt keepsakes, starred.txt keepsakes, starred.txt ✅
FAVORITES-02 favorite:"A1B2-Upper" keepsakes, starred.txt keepsakes, starred.txt keepsakes, starred.txt ✅
FAVORITES-03 Favorites:"somebody-else" no match no match no match ✅

mediatype

Fixtures:

  • notes.md, MimeType = text/markdown
  • photo.jpg, MimeType = image/jpeg
  • albums, folder
  • drafts, folder
Case Query expected bleve OpenSearch same?
MEDIATYPE-01 mediatype:text/markdown notes.md notes.md notes.md ✅
MEDIATYPE-02 mediatype:TEXT/MARKDOWN notes.md notes.md notes.md ✅
MEDIATYPE-03 mediatype:image/jpeg photo.jpg photo.jpg photo.jpg ✅
MEDIATYPE-04 mediatype:*jpeg photo.jpg photo.jpg photo.jpg ✅
MEDIATYPE-05 mediatype:image photo.jpg photo.jpg photo.jpg ✅
MEDIATYPE-06 mediatype:folder albums, drafts albums, drafts albums, drafts ✅
MEDIATYPE-07 mediatype:file notes.md, photo.jpg notes.md, photo.jpg notes.md, photo.jpg ✅
MEDIATYPE-08 NOT mediatype:file albums, drafts albums, drafts albums, drafts ✅
MEDIATYPE-09 mediatype:file OR mediatype:image notes.md, photo.jpg notes.md, photo.jpg notes.md, photo.jpg ✅
MEDIATYPE-10 NOT mediatype:(image OR folder) notes.md notes.md notes.md ✅

path

Fixtures:

  • parent, folder
  • child.jpg, MimeType = image/jpeg, Path = ./parent/child.jpg
  • docs-lower, folder, Path = ./documents
  • docs-upper, folder, Path = ./DOCUMENTS
  • docs-mixed, folder, Path = ./Documents
Case Query expected bleve OpenSearch same?
PATH-01 path:"./parent" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-02 path:"./parent/child.jpg" child.jpg child.jpg child.jpg ✅
PATH-03 path:"./Parent" no match no match no match ✅
PATH-04 path:"*child*" child.jpg child.jpg child.jpg ✅
PATH-05 path:"./documents" docs-lower docs-lower docs-lower ✅
PATH-06 path:"./DOCUMENTS" docs-upper docs-upper docs-upper ✅
PATH-07 path:"./Documents" docs-mixed docs-mixed docs-mixed ✅
PATH-08 path:"./parent/" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-09 path:"/" child.jpg, docs-lower, docs-mixed, docs-upper, parent child.jpg, docs-lower, docs-mixed, docs-upper, parent child.jpg, docs-lower, docs-mixed, docs-upper, parent ✅
PATH-10 path:"" child.jpg, docs-lower, docs-mixed, docs-upper, parent child.jpg, docs-lower, docs-mixed, docs-upper, parent child.jpg, docs-lower, docs-mixed, docs-upper, parent ✅
PATH-11 path:"/parent" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-12 path:"parent" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-13 path:"parent/*" child.jpg child.jpg child.jpg ✅
PATH-14 path:"*/parent" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-15 path:"?/parent" child.jpg, parent child.jpg, parent child.jpg, parent ✅
PATH-16 path:"*/Documents" docs-mixed docs-mixed docs-mixed ✅
PATH-17 path:"*/parent/" child.jpg, parent child.jpg, parent child.jpg, parent ✅

fields

Fixtures:

  • small.txt, ID = 1$1!small.txt, Size = 42
  • old.txt, ID = 1$1!old.txt, Mtime = 2020-01-01T00:00:00Z
  • known.txt, ID = 1$1!23
  • cased.txt, ID = 1$1!AB-23
  • hidden.txt, ID = 1$1!hidden.txt, hidden
  • plain.txt, ID = 1$1!plain.txt
  • box, ID = 1$1!box, folder
  • boxed.txt, ID = 1$1!boxed.txt, Path = ./box/boxed.txt
  • song.mp3, ID = 1$1!song.mp3, MimeType = audio/mpeg, audio.duration = 200
Case Query expected bleve OpenSearch same?
FIELDS-01 size:42 small.txt small.txt small.txt ✅
FIELDS-02 mtime<"2021-01-01T00:00:00Z" old.txt old.txt old.txt ✅
FIELDS-03 id:"1$1!23" known.txt known.txt known.txt ✅
FIELDS-04 hidden:true hidden.txt hidden.txt hidden.txt ✅
FIELDS-05 type:file boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 ✅
FIELDS-06 type:folder box box box ✅
FIELDS-07 unknown:field no match no match no match ✅
FIELDS-08 type:File boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 boxed.txt, cased.txt, hidden.txt, known.txt, old.txt, plain.txt, small.txt, song.mp3 ✅
FIELDS-09 type:FOLDER box box box ✅
FIELDS-10 hidden:TRUE hidden.txt hidden.txt hidden.txt ✅
FIELDS-11 id:"1$1!AB-23" cased.txt cased.txt cased.txt ✅
FIELDS-12 id:"1$1!ab-23" no match no match no match ✅
FIELDS-13 audio.artist:"Some Artist" song.mp3 song.mp3 song.mp3 ✅
FIELDS-14 audio.artist:"some artist" song.mp3 song.mp3 song.mp3 ✅
FIELDS-15 audio.duration>100 song.mp3 song.mp3 song.mp3 ✅
FIELDS-16 type:banana no match no match no match ✅
FIELDS-17 audio.duration:200 song.mp3 song.mp3 song.mp3 ✅
FIELDS-18 audio.duration:long no match no match no match ✅

deleted

Fixtures:

  • trashed.txt, deleted
  • kept.txt
  • bin, folder, deleted
  • receipt.txt, Path = ./bin/receipt.txt, deleted
  • shelf, folder
  • book.txt, Path = ./shelf/book.txt
Case Query expected bleve OpenSearch same?
DELETED-01 name:"*trashed*" no match no match no match ✅
DELETED-02 name:"*.txt" book.txt, kept.txt book.txt, kept.txt book.txt, kept.txt ✅
DELETED-03 name:"*receipt*" no match no match no match ✅
DELETED-04 path:"./bin" no match no match no match ✅
DELETED-05 path:"./shelf" book.txt, shelf book.txt, shelf book.txt, shelf ✅

visibility

Fixtures:

  • visible.txt
  • dotfile.txt, hidden
  • .private, folder, hidden
  • secret.txt, Path = ./.private/secret.txt, hidden
Case Query expected bleve OpenSearch same?
VISIBILITY-01 hidden:true .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt ✅
VISIBILITY-02 hidden:TRUE .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt ✅
VISIBILITY-03 hidden:false visible.txt visible.txt visible.txt ✅
VISIBILITY-04 name:"*secret*" secret.txt secret.txt secret.txt ✅
VISIBILITY-05 path:"./.private" .private, secret.txt .private, secret.txt .private, secret.txt ✅
VISIBILITY-06 hidden:banana no match no match no match ✅
VISIBILITY-07 hidden:"true" .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt .private, dotfile.txt, secret.txt ✅

filter

Fixtures:

  • alice, ID = 1$1!1, folder, Path = .
  • .space, ID = 1$1!.space, folder
  • readme.md, ID = 1$1!readme.md, Path = ./.space/readme.md
  • .spaces, ID = 1$1!.spaces, folder
  • notes.md, ID = 1$1!notes.md
Case Query expected bleve OpenSearch same?
FILTER-01 path:"./.space" .space, readme.md .space, readme.md .space, readme.md ✅
FILTER-02 (name:"*.md") AND (NOT path:"./....NOT id:"none$none!none") notes.md notes.md notes.md ✅
FILTER-03 (name:"alice" OR name:".spaces")...ace" AND NOT id:"1$1!1") .spaces .spaces .spaces ✅
FILTER-04 (name:"alice") AND (NOT path:"./...NOT id:"none$none!none") alice alice alice ✅

boolean

Fixtures:

  • alpha.txt, Tags = red
  • beta.txt, Tags = blue
  • gamma.md, MimeType = text/markdown
Case Query expected bleve OpenSearch same?
BOOLEAN-01 name:"*alpha*" AND name:"*txt*" alpha.txt alpha.txt alpha.txt ✅
BOOLEAN-02 name:"*alpha*" OR name:"*beta*" alpha.txt, beta.txt alpha.txt, beta.txt alpha.txt, beta.txt ✅
BOOLEAN-03 name:"*a*" AND NOT name:"*alpha*" beta.txt, gamma.md beta.txt, gamma.md beta.txt, gamma.md ✅
BOOLEAN-04 name:"*a*" AND tag:("red") alpha.txt alpha.txt alpha.txt ✅
BOOLEAN-05 (name:"*alpha*" OR name:"*beta*") AND mediatype:text/plain alpha.txt, beta.txt alpha.txt, beta.txt alpha.txt, beta.txt ✅
BOOLEAN-06 name:"*a*" AND mediatype:text/markdown gamma.md gamma.md gamma.md ✅

samename

Fixtures:

  • doc, folder
  • doc.pdf
  • file.pdf
  • doc.pdf, Path = ./doc/doc.pdf
  • file.pdf, Path = ./doc/file.pdf
Case Query expected bleve OpenSearch same?
SAMENAME-01 name:"*doc*" 3 items doc, doc.pdf, doc.pdf doc, doc.pdf, doc.pdf ✅
SAMENAME-02 name:"*doc*" in 1$1!1 under ./doc 2 items doc, doc.pdf doc, doc.pdf ✅
SAMENAME-03 name:"*file*" 2 items file.pdf, file.pdf file.pdf, file.pdf ✅
SAMENAME-04 name:"*file*" in 1$1!1 under ./doc 1 items file.pdf file.pdf ✅

stress

Fixtures:

  • quarterly report.docx, MimeType = application/vnd.openxmlformats-officedocument.wordprocessingml.document, Tags = final, Size = 2000
  • draft report.txt, Tags = draft, Size = 50, Mtime = 2020-01-01T00:00:00Z
  • photo.jpg, MimeType = image/jpeg, Tags = final
  • notes.md, MimeType = text/markdown, hidden
  • archive, folder
Case Query expected bleve OpenSearch same?
STRESS-01 name:"*report*" AND mediatype:document draft report.txt, quarterly report.docx draft report.txt, quarterly report.docx draft report.txt, quarterly report.docx ✅
STRESS-02 name:"*report*" AND NOT tag:("draft") quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-03 (tag:("final") OR tag:("draft")) AND mediatype:image photo.jpg photo.jpg photo.jpg ✅
STRESS-04 mediatype:document AND mtime>"2021-01-01T00:00:00Z" notes.md, quarterly report.docx notes.md, quarterly report.docx notes.md, quarterly report.docx ✅
STRESS-05 name:"*report*" AND size>100 quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-06 tag:("final") AND NOT mediatype:folder photo.jpg, quarterly report.docx photo.jpg, quarterly report.docx photo.jpg, quarterly report.docx ✅
STRESS-07 hidden:true AND name:"*notes*" notes.md notes.md notes.md ✅
STRESS-08 name:quarterly report quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-09 name:"quarterly report" quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-10 name:"quarterly report.docx" quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-11 NOT tag:("draft") archive, notes.md, photo.jpg, quarterly report.docx archive, notes.md, photo.jpg, quarterly report.docx archive, notes.md, photo.jpg, quarterly report.docx ✅
STRESS-12 tag:("final") OR hidden:true notes.md, photo.jpg, quarterly report.docx notes.md, photo.jpg, quarterly report.docx notes.md, photo.jpg, quarterly report.docx ✅
STRESS-13 (name:"*report*" OR name:"*notes..."draft") OR hidden:true) quarterly report.docx quarterly report.docx quarterly report.docx ✅
STRESS-14 mediatype:image OR (mediatype:document AND tag:("draft")) draft report.txt, photo.jpg draft report.txt, photo.jpg draft report.txt, photo.jpg ✅
STRESS-15 NOT (mediatype:folder OR hidden:true) draft report.txt, photo.jpg, quarterly report.docx draft report.txt, photo.jpg, quarterly report.docx draft report.txt, photo.jpg, quarterly report.docx ✅
STRESS-16 name:"*report*" AND (size>100 OR tag:("draft")) draft report.txt, quarterly report.docx draft report.txt, quarterly report.docx draft report.txt, quarterly report.docx ✅

everything

Fixtures:

  • alpha.txt
  • beta.txt
  • box, folder
Case Query expected bleve OpenSearch same?
EVERYTHING-01 * alpha.txt, beta.txt, box alpha.txt, beta.txt, box alpha.txt, beta.txt, box ✅
EVERYTHING-02 name:"*" alpha.txt, beta.txt, box alpha.txt, beta.txt, box alpha.txt, beta.txt, box ✅
EVERYTHING-03 * with a limit of 2 2 items alpha.txt, beta.txt alpha.txt, beta.txt ✅
EVERYTHING-04 * with a limit of -1 3 items alpha.txt, beta.txt, box alpha.txt, beta.txt, box ✅

range

Fixtures:

  • small.txt, Size = 50
  • big.txt, Size = 500
  • ancient.txt, Size = 10, Mtime = 2020-01-01T00:00:00Z
Case Query expected bleve OpenSearch same?
RANGE-01 size>100 big.txt big.txt big.txt ✅
RANGE-02 size<100 ancient.txt, small.txt ancient.txt, small.txt ancient.txt, small.txt ✅
RANGE-03 mtime>"2021-01-01T00:00:00Z" big.txt, small.txt big.txt, small.txt big.txt, small.txt ✅
RANGE-04 mtime<"2021-01-01T00:00:00Z" ancient.txt ancient.txt ancient.txt ✅
RANGE-05 Mtime:"today" big.txt, small.txt big.txt, small.txt big.txt, small.txt ✅
RANGE-06 Mtime:"yesterday" no match no match no match ✅
RANGE-07 mtime>2021 no match no match no match ✅
RANGE-08 name>100 no match no match no match ✅
RANGE-09 size>=50 big.txt, small.txt big.txt, small.txt big.txt, small.txt ✅
RANGE-10 size<=50 ancient.txt, small.txt ancient.txt, small.txt ancient.txt, small.txt ✅
RANGE-11 size>100 AND size<1000 big.txt big.txt big.txt ✅
RANGE-12 mtime>=2021-01-01 big.txt, small.txt big.txt, small.txt big.txt, small.txt ✅
RANGE-13 size:50 small.txt small.txt small.txt ✅
RANGE-14 size=50 small.txt small.txt small.txt ✅
RANGE-15 size:1.5 no match no match no match ✅
RANGE-16 size:5* no match no match no match ✅
RANGE-17 size:>100 no match no match no match ✅
RANGE-18 size:<100 no match no match no match ✅
RANGE-19 size:>=100 no match no match no match ✅
RANGE-20 mtime:>"2021-01-01T00:00:00Z" no match no match no match ✅
RANGE-21 mtime:>2021-01-01 no match no match no match ✅
RANGE-22 size:50..500 no match no match no match ✅
RANGE-23 mtime:2019-01-01..2020-12-31 no match no match no match ✅

photo

Fixtures:

  • bright.jpg, MimeType = image/jpeg
  • dark.jpg, MimeType = image/jpeg
  • plain.txt
Case Query expected bleve OpenSearch same?
PHOTO-01 photo.iso>=1000 dark.jpg dark.jpg dark.jpg ✅
PHOTO-02 Photo.FNumber<2 bright.jpg bright.jpg bright.jpg ✅
PHOTO-03 photo.focalLength>30 AND photo.iso<=3200 dark.jpg dark.jpg dark.jpg ✅
PHOTO-04 photo.orientation>1 dark.jpg dark.jpg dark.jpg ✅
PHOTO-05 photo.iso<=100 bright.jpg bright.jpg bright.jpg ✅
PHOTO-06 photo.cameraMake>1 no match no match no match ✅
PHOTO-07 location.altitude>1000 bright.jpg bright.jpg bright.jpg ✅
PHOTO-08 location.latitude<49 no match no match no match ✅

extraction

Fixtures:

  • given-up.pdf
  • waiting.png
  • extracted.txt
Case Query expected bleve OpenSearch same?
EXTRACTION-01 extractionfailure.count>=3 given-up.pdf given-up.pdf given-up.pdf ✅
EXTRACTION-02 ExtractionFailure.Count>=1 given-up.pdf, waiting.png given-up.pdf, waiting.png given-up.pdf, waiting.png ✅
EXTRACTION-03 extractionfailure.retryat>"2029-01-01T00:00:00Z" waiting.png waiting.png waiting.png ✅
EXTRACTION-04 extractionfailure.retryat<"2029-01-01T00:00:00Z" no match no match no match ✅

scope

Fixtures:

  • parent, ID = 1$1!parent, folder
  • child.pdf, ID = 1$1!child.pdf, Path = ./parent/child.pdf
  • outside.txt, ID = 1$1!outside.txt
  • elsewhere.txt, ID = 1$1!elsewhere.txt
Case Query expected bleve OpenSearch same?
SCOPE-01 * child.pdf, elsewhere.txt, outside.txt, parent child.pdf, elsewhere.txt, outside.txt, parent child.pdf, elsewhere.txt, outside.txt, parent ✅
SCOPE-02 * in 1$1!1 child.pdf, outside.txt, parent child.pdf, outside.txt, parent child.pdf, outside.txt, parent ✅
SCOPE-03 * in 1$1!1 under ./parent child.pdf, parent child.pdf, parent child.pdf, parent ✅
SCOPE-04 * in 1$1!1 under ./parent/child.pdf child.pdf child.pdf child.pdf ✅
SCOPE-05 name:"*elsewhere*" in 1$1!1 no match no match no match ✅
SCOPE-06 driveid:"2$2" elsewhere.txt elsewhere.txt elsewhere.txt ✅
SCOPE-07 driveid:"1$1" child.pdf, outside.txt, parent child.pdf, outside.txt, parent child.pdf, outside.txt, parent ✅
SCOPE-08 NOT driveid:"2$2" child.pdf, outside.txt, parent child.pdf, outside.txt, parent child.pdf, outside.txt, parent ✅
SCOPE-09 name:"*elsewhere*" AND driveid:"2$2" elsewhere.txt elsewhere.txt elsewhere.txt ✅

invalid

Fixtures:

  • alpha.txt
Case Query expected bleve OpenSearch same?
INVALID-01 AND mediatype:document bad request bad request bad request ✅
INVALID-02 mediatype:document AND bad request bad request bad request ✅
INVALID-03 mediatype:document NOT bad request bad request bad request ✅
INVALID-04 mediatype:document AND OR name:alpha bad request bad request bad request ✅
INVALID-05 (mediatype:document bad request bad request bad request ✅
INVALID-06 mediatype:document) OR (name:alpha bad request bad request bad request ✅

quoting

Fixtures:

  • Angebot "Quote" Test.txt, Content = "Der Kunde sagte "Quotewort" im Gespraech."
  • Angebot Quote.txt, Content = "Quotewort ohne Anfuehrungszeichen"
  • back\slash.txt, Content = "liegt unter C:\temp\new"
  • hi-tag.txt, Tags = say "hi"
  • slash-tag.txt, Tags = a/b
  • root-tag.txt, Tags = /
  • backslash-tag.txt, Tags = back\slash
Case Query expected bleve OpenSearch same?
QUOTING-01 name:"*""Quote""*" Angebot "Quote" Test.txt Angebot "Quote" Test.txt Angebot "Quote" Test.txt ✅
QUOTING-02 name:"*Quote*" Angebot "Quote" Test.txt, Angebot Quote.txt Angebot "Quote" Test.txt, Angebot Quote.txt Angebot "Quote" Test.txt, Angebot Quote.txt ✅
QUOTING-03 name:"Angebot ""Quote"" Test.txt" Angebot "Quote" Test.txt Angebot "Quote" Test.txt Angebot "Quote" Test.txt ✅
QUOTING-04 name="Angebot ""Quote"" Test.txt" Angebot "Quote" Test.txt Angebot "Quote" Test.txt Angebot "Quote" Test.txt ✅
QUOTING-05 content:"""Quotewort""" Angebot "Quote" Test.txt, Angebot Quote.txt Angebot "Quote" Test.txt, Angebot Quote.txt Angebot "Quote" Test.txt, Angebot Quote.txt ✅
QUOTING-06 content:"sagte ""Quotewort""" Angebot "Quote" Test.txt Angebot "Quote" Test.txt Angebot "Quote" Test.txt ✅
QUOTING-07 name:"*back\slash*" back\slash.txt back\slash.txt back\slash.txt ✅
QUOTING-08 name:back\slash.txt back\slash.txt back\slash.txt back\slash.txt ✅
QUOTING-09 content:"C:\temp\new" back\slash.txt back\slash.txt back\slash.txt ✅
QUOTING-10 content:"foo\" no match no match no match ✅
QUOTING-11 name:"*\"Quote\"*" no match no match no match ✅
QUOTING-12 tag:"say ""hi""" hi-tag.txt hi-tag.txt hi-tag.txt ✅
QUOTING-13 tag:"a/b" slash-tag.txt slash-tag.txt slash-tag.txt ✅
QUOTING-14 tag:a/b slash-tag.txt slash-tag.txt slash-tag.txt ✅
QUOTING-15 tag:"/" root-tag.txt root-tag.txt root-tag.txt ✅
QUOTING-16 tag:"back\slash" backslash-tag.txt backslash-tag.txt backslash-tag.txt ✅
QUOTING-17 tag:"*\*" backslash-tag.txt backslash-tag.txt backslash-tag.txt ✅
QUOTING-18 name:Quote" bad request bad request bad request ✅
QUOTING-19 content:"foo\"" bad request bad request bad request ✅
QUOTING-20 name:""" bad request bad request bad request ✅

Operations

delete

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
Case Query expected bleve OpenSearch same?
DELETE-01 takes the resource out of the results, then name:"*parent*" parent parent parent ✅
DELETE-01 takes the resource out of the results, then name:"*child*" no match no match no match ✅
DELETE-02 takes the descendants along, then name:"*parent*" no match no match no match ✅
DELETE-02 takes the descendants along, then name:"*child*" no match no match no match ✅
DELETE-03 leaves the resource in the index, then DocCount() 2 2 2 ✅
DELETE-04 takes a resource out that was just written, then name:"*fresh*" no match no match no match ✅

restore

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
  • file.txt, ID = 1$1!5, Path = ./.secret/file.txt, hidden
Case Query expected bleve OpenSearch same?
RESTORE-01 brings the descendants back, then name:"*parent*" parent parent parent ✅
RESTORE-01 brings the descendants back, then name:"*child*" child.pdf child.pdf child.pdf ✅
RESTORE-02 leaves the hidden flag alone, then hidden:true file.txt file.txt file.txt ✅

purge

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
  • a, ID = 1$1!trashed, folder, deleted
  • x.txt, ID = 1$1!trashed-x, Path = ./a/x.txt, deleted
  • a, ID = 1$1!live, folder
  • y.txt, ID = 1$1!live-y, Path = ./a/y.txt
Case Query expected bleve OpenSearch same?
PURGE-01 removes one resource, then name:"*parent*" parent parent parent ✅
PURGE-01 removes one resource, then name:"*child*" no match no match no match ✅
PURGE-01 removes one resource, then DocCount() 1 1 1 ✅
PURGE-02 removes the tree, then name:"*parent*" no match no match no match ✅
PURGE-02 removes the tree, then name:"*child*" no match no match no match ✅
PURGE-02 removes the tree, then DocCount() 0 0 0 ✅
PURGE-03 takes only the deleted ones when it is told to, then name:"*parent*" parent parent parent ✅
PURGE-03 takes only the deleted ones when it is told to, then name:"*child*" no match no match no match ✅
PURGE-04 leaves the live folder that took the trashed one's path alone, then path:"./a" a, y.txt a, y.txt a, y.txt ✅
PURGE-04 leaves the live folder that took the trashed one's path alone, then DocCount() 2 2 2 ✅

purgespace

Fixtures:

  • inSpace.txt, ID = 1$1!4
  • elsewhere.txt, ID = 2$2!4
  • bulk-0.txt, ID = 1$1!bulk-0.txt
  • bulk-1.txt, ID = 1$1!bulk-1.txt
  • bulk-2.txt, ID = 1$1!bulk-2.txt
  • bulk-3.txt, ID = 1$1!bulk-3.txt
  • bulk-4.txt, ID = 1$1!bulk-4.txt
  • bulk-5.txt, ID = 1$1!bulk-5.txt
  • bulk-6.txt, ID = 1$1!bulk-6.txt
  • bulk-7.txt, ID = 1$1!bulk-7.txt
  • ... and 52 more of the same
Case Query expected bleve OpenSearch same?
PURGESPACE-01 leaves the other space alone, then name:"*inSpace*" no match no match no match ✅
PURGESPACE-01 leaves the other space alone, then name:"*elsewhere*" elsewhere.txt elsewhere.txt elsewhere.txt ✅
PURGESPACE-02 takes a space out that holds more than one round, then name:"*bulk*" no match no match no match ✅
PURGESPACE-02 takes a space out that holds more than one round, then name:"*elsewhere*" elsewhere.txt elsewhere.txt elsewhere.txt ✅
PURGESPACE-02 takes a space out that holds more than one round, then DocCount() 1 1 1 ✅

move

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
  • big, ID = 1$1!4, folder
  • f1.txt, ID = 1$1!5, Path = ./big/f1.txt
  • x.txt, ID = 1$1!6, Path = ./big2/x.txt
  • odd name (1), ID = 1$1!7, folder
  • f:x+y.txt, ID = 1$1!8, Path = ./odd name (1)/f:x+y.txt
  • a, ID = 1$1!trashed, folder, deleted
  • x.txt, ID = 1$1!trashed-x, Path = ./a/x.txt, deleted
  • a, ID = 1$1!live, folder
  • y.txt, ID = 1$1!live-y, Path = ./a/y.txt
Case Query expected bleve OpenSearch same?
MOVE-01 carries the descendants to the new path, then path:"./my/newname/child.pdf" child.pdf child.pdf child.pdf ✅
MOVE-01 carries the descendants to the new path, then path:"./parent/child.pdf" no match no match no match ✅
MOVE-02 through the trash and back leaves the flag behind, then hidden:true no match no match no match ✅
MOVE-03 leaves a sibling folder that shares the prefix alone, then path:"./moved" f1.txt, moved f1.txt, moved f1.txt, moved ✅
MOVE-03 leaves a sibling folder that shares the prefix alone, then path:"./big" no match no match no match ✅
MOVE-03 leaves a sibling folder that shares the prefix alone, then path:"./big2" x.txt x.txt x.txt ✅
MOVE-04 carries the descendants of a path with special characters, then path:"./odd name (2)" f:x+y.txt, odd name (2) f:x+y.txt, odd name (2) f:x+y.txt, odd name (2) ✅
MOVE-04 carries the descendants of a path with special characters, then path:"./odd name (1)" no match no match no match ✅
MOVE-05 leaves a trashed folder that shares the path where it is, then path:"./a" a, x.txt a, x.txt a, x.txt ✅
MOVE-05 leaves a trashed folder that shares the path where it is, then path:"./b" b, y.txt b, y.txt b, y.txt ✅

rootscope

Fixtures:

  • target.txt, ID = 1$1!3, Path = ./same/path.txt
  • twin.txt, ID = 2$2!3, Path = ./same/path.txt
  • target.txt, ID = 1$1!3, Path = ./same/path.txt, deleted
  • twin.txt, ID = 2$2!3, Path = ./same/path.txt, deleted
Case Query expected bleve OpenSearch same?
ROOTSCOPE-01 deletes only the one in the target root, then name:"*target*" no match no match no match ✅
ROOTSCOPE-01 deletes only the one in the target root, then name:"*twin*" twin.txt twin.txt twin.txt ✅
ROOTSCOPE-02 restores only the one in the target root, then name:"*target*" target.txt target.txt target.txt ✅
ROOTSCOPE-02 restores only the one in the target root, then name:"*twin*" no match no match no match ✅
ROOTSCOPE-04 purges only the one in the target root, then name:"*target*" no match no match no match ✅
ROOTSCOPE-04 purges only the one in the target root, then name:"*twin*" twin.txt twin.txt twin.txt ✅
ROOTSCOPE-03 moves only the one in the target root, then path:"./moved.txt" moved.txt moved.txt moved.txt ✅
ROOTSCOPE-03 moves only the one in the target root, then path:"./same/path.txt" twin.txt twin.txt twin.txt ✅

casepath

Fixtures:

  • Documents, ID = 1$1!2, folder
  • Picture.jpg, ID = 1$1!3, MimeType = image/jpeg, Path = ./Documents/Picture.jpg
Case Query expected bleve OpenSearch same?
CASEPATH-01 takes the descendants along when deleting, then path:"./Documents" no match no match no match ✅
CASEPATH-02 takes the descendants along when moving, then path:"./Other Documents" Other Documents, Picture.jpg Other Documents, Picture.jpg Other Documents, Picture.jpg ✅
CASEPATH-02 takes the descendants along when moving, then path:"./Documents" no match no match no match ✅
CASEPATH-03 reaches the descendants when purging, then path:"./Documents" no match no match no match ✅
CASEPATH-03 reaches the descendants when purging, then DocCount() 0 0 0 ✅

hidden

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
  • parent, ID = 1$1!2, folder, Path = ./.trash/parent, hidden
  • child.pdf, ID = 1$1!3, Path = ./.trash/parent/child.pdf, hidden
  • parent, ID = 1$1!2, folder, Path = ./.parent, hidden
  • child.pdf, ID = 1$1!3, Path = ./.parent/child.pdf, hidden
Case Query expected bleve OpenSearch same?
HIDDEN-01 follows a move into a dot folder, then hidden:true child.pdf, parent child.pdf, parent child.pdf, parent ✅
HIDDEN-02 follows a move into a plain folder, then hidden:true no match no match no match ✅
HIDDEN-03 follows a move renamed with a leading dot, then hidden:true .parent, child.pdf .parent, child.pdf .parent, child.pdf ✅
HIDDEN-04 follows a move out of a dot folder, then hidden:true no match no match no match ✅
HIDDEN-05 follows a move renamed without the leading dot, then hidden:true no match no match no match ✅
HIDDEN-06 follows a move within the same dot folder, then hidden:true child.pdf, moved child.pdf, moved child.pdf, moved ✅

upsert

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
Case Query expected bleve OpenSearch same?
UPSERT-01 replaces the resource it already knows, then name:"*parent*" parent parent parent ✅
UPSERT-01 replaces the resource it already knows, then name:"*child*" no match no match no match ✅
UPSERT-01 replaces the resource it already knows, then name:"*renamed*" renamed.pdf renamed.pdf renamed.pdf ✅
UPSERT-01 replaces the resource it already knows, then DocCount() 2 2 2 ✅

idempotency

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
Case Query expected bleve OpenSearch same?
IDEMPOTENCY-01 deleting the same resource twice is not an error, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-01 deleting the same resource twice is not an error, then name:"*child*" no match no match no match ✅
IDEMPOTENCY-02 deleting a resource the index does not have reports it, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-02 deleting a resource the index does not have reports it, then name:"*child*" child.pdf child.pdf child.pdf ✅
IDEMPOTENCY-03 restoring a resource that was never deleted leaves it alone, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-03 restoring a resource that was never deleted leaves it alone, then name:"*child*" child.pdf child.pdf child.pdf ✅
IDEMPOTENCY-04 purging the same resource twice reports the second one, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-04 purging the same resource twice reports the second one, then name:"*child*" no match no match no match ✅
IDEMPOTENCY-04 purging the same resource twice reports the second one, then DocCount() 1 1 1 ✅
IDEMPOTENCY-05 purging a resource the index does not have reports it, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-05 purging a resource the index does not have reports it, then name:"*child*" child.pdf child.pdf child.pdf ✅
IDEMPOTENCY-05 purging a resource the index does not have reports it, then DocCount() 2 2 2 ✅
IDEMPOTENCY-06 moving a resource onto its own path leaves it where it is, then path:"./parent/child.pdf" child.pdf child.pdf child.pdf ✅
IDEMPOTENCY-06 moving a resource onto its own path leaves it where it is, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-07 purging a whole space that holds nothing is not an error, then name:"*parent*" parent parent parent ✅
IDEMPOTENCY-07 purging a whole space that holds nothing is not an error, then name:"*child*" child.pdf child.pdf child.pdf ✅
IDEMPOTENCY-07 purging a whole space that holds nothing is not an error, then DocCount() 2 2 2 ✅

batch

Fixtures:

  • parent, ID = 1$1!2, folder
  • child.pdf, ID = 1$1!3, Path = ./parent/child.pdf
Case Query expected bleve OpenSearch same?
BATCH-01 holds what it was given until it is pushed, then name:"*added*" no match no match no match ✅
BATCH-02 writes what it was given once it is pushed, then name:"*added*" added.pdf added.pdf added.pdf ✅
BATCH-02 writes what it was given once it is pushed, then DocCount() 3 3 3 ✅
BATCH-03 takes a resource out the same way a delete does, then name:"*parent*" parent parent parent ✅
BATCH-03 takes a resource out the same way a delete does, then name:"*child*" no match no match no match ✅
BATCH-04 moves a resource the same way a move does, then path:"./my/newname/child.pdf" child.pdf child.pdf child.pdf ✅
BATCH-04 moves a resource the same way a move does, then path:"./parent/child.pdf" no match no match no match ✅
BATCH-05 keeps what another batch holds out of its push, then name:"*added*" added.pdf added.pdf added.pdf ✅
BATCH-05 keeps what another batch holds out of its push, then name:"*other*" no match no match no match ✅

Response

entity

Fixtures:

  • parent, ID = 1$1!2, folder
  • bar.pdf, ID = 1$1!3, MimeType = application/pdf, Path = ./parent/bar.pdf, Size = 1234
  • notes.txt, ID = 1$1!4, Content = "foo bar baz"
  • markup.txt, ID = 1$1!5, Content = "foo qux"
  • escaped.txt, ID = 1$1!6, Content = "foo <img src=x> zap"
Case Query expected bleve OpenSearch same?
ENTITY-01 name:"bar.pdf" reads Ref.Path ./parent/bar.pdf ./parent/bar.pdf ./parent/bar.pdf ✅
ENTITY-02 name:"bar.pdf" reads Name bar.pdf bar.pdf bar.pdf ✅
ENTITY-03 name:"bar.pdf" reads Id 1$1!3 1$1!3 1$1!3 ✅
ENTITY-04 name:"bar.pdf" reads ParentId 1$1!2 1$1!2 1$1!2 ✅
ENTITY-05 name:"bar.pdf" reads Ref.ResourceId 1$1!1 1$1!1 1$1!1 ✅
ENTITY-06 name:"bar.pdf" reads Size 1234 1234 1234 ✅
ENTITY-07 name:"bar.pdf" reads Type 1 1 1 ✅
ENTITY-08 name:"bar.pdf" reads MimeType application/pdf application/pdf application/pdf ✅
ENTITY-09 name:"bar.pdf" reads Deleted false false false ✅
ENTITY-10 name:"bar.pdf" reads Score above zero above zero above zero ✅
ENTITY-11 path:"./parent" reads TotalMatches 2 2 2 ✅
ENTITY-12 name:"*notes*" reads Highlights "" "" "" ✅
ENTITY-13 content:bar reads Highlights foo bar baz foo bar baz foo bar baz ✅
ENTITY-17 content:qux reads Highlights foo <im...x foo <im...x foo <im...x ✅
ENTITY-18 content:zap reads Highlights foo &l...p foo &l...p foo &l...p ✅
ENTITY-14 moved to another parent, then name:"newname" reads ParentId 1$1!9 1$1!9 1$1!9 ✅
ENTITY-15 moved to another parent, then name:"bar.pdf" reads ParentId 1$1!2 1$1!2 1$1!2 ✅
ENTITY-16 moved to another parent, then name:"bar.pdf" reads Ref.Path ./somewher.../bar.pdf ./somewher.../bar.pdf ./somewher.../bar.pdf ✅

metadata

Fixtures:

  • some_song.mp3, ID = 1$1!5, MimeType = audio/mpeg, audio.duration = 225000, audio.year = 2004
  • team.jpg, ID = 1$1!6, MimeType = image/jpeg
  • lost.jpg, ID = 1$1!7, MimeType = image/jpeg
Case Query expected bleve OpenSearch same?
METADATA-01 *song* reads Audio all 16 fields unchanged all 16 fields unchanged all 16 fields unchanged ✅
METADATA-02 *team* reads Location all 3 fields unchanged all 3 fields unchanged all 3 fields unchanged ✅
METADATA-04 *lost* reads Location Latitude=100, Longitude=11.1 Latitude=100, Longitude=11.1 Latitude=100, Longitude=11.1 ✅
METADATA-03 *team* reads Audio none none none ✅

Aggregations

aggregations

Fixtures:

  • a.mp3, MimeType = audio/mpeg, Tags = live, remaster, audio.year = 1971
  • b.mp3, MimeType = audio/mpeg, Tags = live, audio.year = 1975
  • c.mp3, MimeType = audio/mpeg, audio.year = 1982
  • d.mp3, MimeType = audio/mpeg, audio.year = 1999
  • e.mp3, MimeType = audio/mpeg, audio.year = 2001
  • f.mp3, MimeType = audio/mpeg, audio.year = 2005
  • g.mp3, MimeType = audio/mpeg, audio.year = 2009
  • a.jpg, MimeType = image/jpeg, photo.takenDateTime = 2018-08-11T09:15:00Z
  • b.jpg, MimeType = image/jpeg, photo.takenDateTime = 2018-08-11T19:42:00Z
  • c.jpg, MimeType = image/jpeg, photo.takenDateTime = 2018-09-01T12:00:00Z
  • d.jpg, MimeType = image/jpeg, photo.takenDateTime = 2021-08-11T08:00:00Z
  • live.txt, Tags = Apple, apple, Banana
Case Query expected bleve OpenSearch same?
AGG-01 mediatype:audio reads term buckets on audio.artist audio.artist Motörhead=3, audio.artist Saxon=2 audio.artist Motörhead=3, audio.artist Saxon=2 audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-02 mediatype:audio reads no aggregations requested no match no match no match ✅
AGG-03 mediatype:audio reads artist and album buckets in one request audio.albu... Steel=2, audio.albu...Spades=1, audio.album Bomber=2, audio.artist Motörhead=3, audio.artist Saxon=2 audio.albu... Steel=2, audio.albu...Spades=1, audio.album Bomber=2, audio.artist Motörhead=3, audio.artist Saxon=2 audio.albu... Steel=2, audio.albu...Spades=1, audio.album Bomber=2, audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-04 mediatype:audio reads audio.year buckets per decade audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3 audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3 audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3 ✅
AGG-05 mediatype:audio reads open-ended audio.year ranges audio.year ..1990=3, audio.year 2000..=3 audio.year ..1990=3, audio.year 2000..=3 audio.year ..1990=3, audio.year 2000..=3 ✅
AGG-06 mediatype:audio reads top-level metrics on audio.year audio.year max=2009, audio.year min=1971, audio.year sum=13942, audio.year... count=7 audio.year max=2009, audio.year min=1971, audio.year sum=13942, audio.year... count=7 audio.year max=2009, audio.year min=1971, audio.year sum=13942, audio.year... count=7 ✅
AGG-07 mediatype:image reads photo.takenDateTime buckets per date range, an empty range counts zero photo.take...00:00Z=0, photo.take...00:00Z=1, photo.take...00:00Z=2, photo.take...00:00Z=2 photo.take...00:00Z=0, photo.take...00:00Z=1, photo.take...00:00Z=2, photo.take...00:00Z=2 photo.take...00:00Z=0, photo.take...00:00Z=1, photo.take...00:00Z=2, photo.take...00:00Z=2 ✅
AGG-08 mediatype:image reads open-ended date ranges photo.take...00:00Z=3, photo.take...:00Z..=1 photo.take...00:00Z=3, photo.take...:00Z..=1 photo.take...00:00Z=3, photo.take...:00Z..=1 ✅
AGG-09 mediatype:image reads malformed date range bound bad request bad request bad request ✅
AGG-10 mediatype:audio reads album buckets nested in artist buckets audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-11 mediatype:audio reads sum and avg of audio.year per artist audio.arti... count=2, audio.arti... count=3, audio.arti...sum=3946, audio.arti...sum=5982, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... count=2, audio.arti... count=3, audio.arti...sum=3946, audio.arti...sum=5982, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... count=2, audio.arti... count=3, audio.arti...sum=3946, audio.arti...sum=5982, audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-12 mediatype:audio reads artist buckets nested in audio.year decades audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3, audio.year... Saxon=2, audio.year...örhead=1, audio.year...örhead=1, audio.year...örhead=1 audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3, audio.year... Saxon=2, audio.year...örhead=1, audio.year...örhead=1, audio.year...örhead=1 audio.year 1970..1980=2, audio.year 1980..1990=1, audio.year 1990..2000=1, audio.year 2000..2010=3, audio.year... Saxon=2, audio.year...örhead=1, audio.year...örhead=1, audio.year...örhead=1 ✅
AGG-13 mediatype:audio reads max audio.year per album per artist, three levels audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.arti...max=1975, audio.arti...max=1999, audio.arti...max=2001, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.arti...max=1975, audio.arti...max=1999, audio.arti...max=2001, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.arti...max=1975, audio.arti...max=1999, audio.arti...max=2001, audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-14 mediatype:image reads MimeType buckets nested in open-ended date ranges photo.take...00:00Z=3, photo.take...:00Z..=1, photo.take...e/jpeg=1, photo.take...e/jpeg=3 photo.take...00:00Z=3, photo.take...:00Z..=1, photo.take...e/jpeg=1, photo.take...e/jpeg=3 error ❌ known
AGG-15 mediatype:audio reads nested aggregations cover every match on a page of one 1 of 7 matches, audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2, audio.year sum=13942 1 of 7 matches, audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2, audio.year sum=13942 1 of 7 matches, audio.arti... Steel=2, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, audio.artist Saxon=2, audio.year sum=13942 ✅
AGG-18 mediatype:audio reads two range aggregations and a metric on audio.year stay apart audio.year ..1980=2, audio.year ..2000=4, audio.year 1980..=5, audio.year 2000..=3, audio.year max=2009 audio.year ..1980=2, audio.year ..2000=4, audio.year 1980..=5, audio.year 2000..=3, audio.year max=2009 audio.year ..1980=2, audio.year ..2000=4, audio.year 1980..=5, audio.year 2000..=3, audio.year max=2009 ✅
AGG-20 mediatype:audio reads album buckets in audio.year ranges in artist buckets audio.arti... Steel=2, audio.arti.....1980=0, audio.arti.....1980=2, audio.arti...1980..=0, audio.arti...1980..=3, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, … +1 more audio.arti... Steel=2, audio.arti.....1980=0, audio.arti.....1980=2, audio.arti...1980..=0, audio.arti...1980..=3, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, … +1 more audio.arti... Steel=2, audio.arti.....1980=0, audio.arti.....1980=2, audio.arti...1980..=0, audio.arti...1980..=3, audio.arti...Bomber=2, audio.arti...Spades=1, audio.artist Motörhead=3, … +1 more ✅
AGG-21 mediatype:image reads a metric without a single value has none audio.year avg none, audio.year min none, audio.year sum none audio.year avg none, audio.year min none, audio.year sum none audio.year avg none, audio.year min none, audio.year sum none ✅
AGG-22 mediatype:audio reads filtered to the Saxon bucket, as many matches as the bucket counted a.mp3, audio.artist Saxon=2, b.mp3 a.mp3, audio.artist Saxon=2, b.mp3 a.mp3, audio.artist Saxon=2, b.mp3 ✅
AGG-49 name:live.txt reads tags keep their case, Apple and apple are two buckets Tags Apple=1, Tags Banana=1, Tags apple=1 Tags Apple=1, Tags Banana=1, Tags apple=1 Tags Apple=1, Tags Banana=1, Tags apple=1 ✅
AGG-23 mediatype:audio reads filtered to saxon, a bucket key matches case-sensitively no match no match no match ✅
AGG-46 mediatype:audio reads filtered to a fractional key on a whole-number field, no match and no error no match no match no match ✅
AGG-24 mediatype:audio reads filtered to the Saxon or the Motörhead bucket a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 ✅
AGG-25 mediatype:audio reads filtered to audio.year 1980-1990 c.mp3 c.mp3 c.mp3 ✅
AGG-26 mediatype:audio reads filtered to audio.year 1982-1999, from-inclusive and to-exclusive c.mp3 c.mp3 c.mp3 ✅
AGG-27 mediatype:audio reads filtered to audio.year 2000- e.mp3, f.mp3, g.mp3 e.mp3, f.mp3, g.mp3 e.mp3, f.mp3, g.mp3 ✅
AGG-28 mediatype:audio reads filtered to audio.year -1980 or 2005- a.mp3, b.mp3, f.mp3, g.mp3 a.mp3, b.mp3, f.mp3, g.mp3 a.mp3, b.mp3, f.mp3, g.mp3 ✅
AGG-29 mediatype:image reads filtered to photo.takenDateTime on 2018-08-11 a.jpg, b.jpg a.jpg, b.jpg a.jpg, b.jpg ✅
AGG-30 mediatype:audio reads filtered to the Motörhead bucket and to audio.year 1990-2010 d.mp3, e.mp3 d.mp3, e.mp3 d.mp3, e.mp3 ✅
AGG-31 * reads filtered to the bucket Wh*t? "Live", a key is data live.txt live.txt live.txt ✅
AGG-32 mediatype:audio reads filtered to Sax*, a key is no wildcard pattern no match no match no match ✅
AGG-33 mediatype:audio reads filtered to a malformed range bad request bad request bad request ✅
AGG-34 mediatype:audio reads term buckets on the numeric audio.year audio.year 1971=1, audio.year 1975=1, audio.year 1982=1, audio.year 1999=1, audio.year 2001=1, audio.year 2005=1, audio.year 2009=1 audio.year 1971=1, audio.year 1975=1, audio.year 1982=1, audio.year 1999=1, audio.year 2001=1, audio.year 2005=1, audio.year 2009=1 audio.year 1971=1, audio.year 1975=1, audio.year 1982=1, audio.year 1999=1, audio.year 2001=1, audio.year 2005=1, audio.year 2009=1 ✅
AGG-35 mediatype:audio reads audio.year buckets nested in artist buckets audio.arti...r 1971=1, audio.arti...r 1975=1, audio.arti...r 1982=1, audio.arti...r 1999=1, audio.arti...r 2001=1, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti...r 1971=1, audio.arti...r 1975=1, audio.arti...r 1982=1, audio.arti...r 1999=1, audio.arti...r 2001=1, audio.artist Motörhead=3, audio.artist Saxon=2 audio.arti...r 1971=1, audio.arti...r 1975=1, audio.arti...r 1982=1, audio.arti...r 1999=1, audio.arti...r 2001=1, audio.artist Motörhead=3, audio.artist Saxon=2 ✅
AGG-36 mediatype:audio reads filtered to the audio.year bucket 1982 c.mp3 c.mp3 c.mp3 ✅
AGG-37 mediatype:audio reads term buckets on the bool audio.hasDrm, spelled true and false audio.hasDrm false=1, audio.hasDrm true=1 audio.hasDrm false=1, audio.hasDrm true=1 audio.hasDrm false=1, audio.hasDrm true=1 ✅
AGG-38 mediatype:audio reads filtered to the audio.hasDrm bucket true a.mp3 a.mp3 a.mp3 ✅
AGG-39 mediatype:audio reads no bucket for the empty Title of every match no match no match no match ✅
AGG-40 mediatype:audio reads no bucket for the empty Title, with sub-aggregations neither no match no match no match ✅
AGG-41 mediatype:audio reads matches of the same score in the order of their ids, page after page 3 of 7 matches, a.mp3, b.mp3, c.mp3 3 of 7 matches, a.mp3, b.mp3, c.mp3 3 of 7 matches, a.mp3, b.mp3, c.mp3 ✅
AGG-45 mediatype:audio reads filtered to the Tags bucket live, a filter narrows and does not rank a.mp3, b.mp3 a.mp3, b.mp3 a.mp3, b.mp3 ✅

cardinality

Fixtures:

  • card-00000.mp3, MimeType = audio/mpeg, audio.year = 1950
  • card-00001.mp3, MimeType = audio/mpeg, audio.year = 1951
  • card-00002.mp3, MimeType = audio/mpeg, audio.year = 1952
  • card-00003.mp3, MimeType = audio/mpeg, audio.year = 1953
  • card-00004.mp3, MimeType = audio/mpeg, audio.year = 1954
  • card-00005.mp3, MimeType = audio/mpeg, audio.year = 1955
  • card-00006.mp3, MimeType = audio/mpeg, audio.year = 1956
  • card-00007.mp3, MimeType = audio/mpeg, audio.year = 1957
  • card-00008.mp3, MimeType = audio/mpeg, audio.year = 1958
  • card-00009.mp3, MimeType = audio/mpeg, audio.year = 1959
  • ... and 10040 more of the same
Case Query expected bleve OpenSearch same?
AGG-47 Tags:* reads one bucket per tag, whichever match carries it 150 items Tags tag-000=53, Tags tag-001=53, Tags tag-002=53, Tags tag-003=53, Tags tag-004=53, Tags tag-005=53, Tags tag-006=53, Tags tag-007=53, … +142 more Tags tag-000=53, Tags tag-001=53, Tags tag-002=53, Tags tag-003=53, Tags tag-004=53, Tags tag-005=53, Tags tag-006=53, Tags tag-007=53, … +142 more ✅
AGG-17 mediatype:audio reads one bucket per artist, cardinality above the page size 10050 items audio.arti...-00000=1, audio.arti...-00001=1, audio.arti...-00002=1, audio.arti...-00003=1, audio.arti...-00004=1, audio.arti...-00005=1, audio.arti...-00006=1, audio.arti...-00007=1, … +10042 more audio.arti...-00000=1, audio.arti...-00001=1, audio.arti...-00002=1, audio.arti...-00003=1, audio.arti...-00004=1, audio.arti...-00005=1, audio.arti...-00006=1, audio.arti...-00007=1, … +10042 more ✅
AGG-42 mediatype:audio reads the total counts every match 1 of 10050 matches 1 of 10050 matches 1 of 10050 matches ✅
AGG-43 mediatype:audio reads a page reaching beyond the first 10000 matches 10001 of 10050 matches 10001 of 10050 matches bad request ❌ known
AGG-44 mediatype:audio reads more than 65535 buckets in one request are refused bad request bad request bad request ✅

geohash

Fixtures:

  • skagen-a.jpg, MimeType = image/jpeg
  • skagen-b.jpg, MimeType = image/jpeg
  • berlin.jpg, MimeType = image/jpeg
  • null-island.jpg, MimeType = image/jpeg
  • just-south.jpg, MimeType = image/jpeg
  • north-east-corner.jpg, MimeType = image/jpeg
  • nowhere.jpg, MimeType = image/jpeg
Case Query expected bleve OpenSearch same?
AGG-50 mediatype:image reads geohash cells at precision 5 location kpbxy=1, location s0000=1, location u33dc=1, location u4pru=2, location zzzzz=1 location kpbxy=1, location s0000=1, location u33dc=1, location u4pru=2, location zzzzz=1 location kpbxy=1, location s0000=1, location u33dc=1, location u4pru=2, location zzzzz=1 ✅
AGG-51 mediatype:image reads camera buckets nested in geohash cells at precision 3 location k... Leica=1, location kpb=1, location s... Leica=1, location s00=1, location u... Leica=1, location u... Leica=2, location u33=1, location u4p=2, … +2 more location k... Leica=1, location kpb=1, location s... Leica=1, location s00=1, location u... Leica=1, location u... Leica=2, location u33=1, location u4p=2, … +2 more location k... Leica=1, location kpb=1, location s... Leica=1, location s00=1, location u... Leica=1, location u... Leica=2, location u33=1, location u4p=2, … +2 more ✅
AGG-52 mediatype:image reads filtered to the cell u4pru, as many matches as the cell counted location u4pru=2, skagen-a.jpg, skagen-b.jpg location u4pru=2, skagen-a.jpg, skagen-b.jpg location u4pru=2, skagen-a.jpg, skagen-b.jpg ✅
AGG-53 mediatype:image reads filtered to two cells of different precision berlin.jpg, skagen-a.jpg, skagen-b.jpg berlin.jpg, skagen-a.jpg, skagen-b.jpg berlin.jpg, skagen-a.jpg, skagen-b.jpg ✅
AGG-54 mediatype:image reads filtered to the cells whose upper edges 0,0 lies on, without the point on the edge just-south.jpg just-south.jpg just-south.jpg ✅
AGG-55 mediatype:image reads filtered to the cell 0,0 lies in, from its lower edges null-island.jpg null-island.jpg null-island.jpg ✅
AGG-57 mediatype:image reads filtered to the cell below 0,1, which a point a billionth of a degree south of the edge lies in just-south.jpg just-south.jpg just-south.jpg ✅
AGG-58 mediatype:image reads filtered to the last cell, which keeps its edges at 90 and 180 north-east-corner.jpg north-east-corner.jpg north-east-corner.jpg ✅
AGG-56 mediatype:image reads filtered to a key that is no geohash bad request bad request bad request ✅

Sorting

sorting

Fixtures:

  • b.mp3, MimeType = audio/mpeg, Size = 300, Mtime = 2024-03-01T00:00:00Z, audio.duration = 200000, audio.year = 1999
  • a.mp3, MimeType = audio/mpeg, Size = 100, Mtime = 2024-01-01T00:00:00Z, audio.duration = 300000, audio.year = 2005
  • C.mp3, MimeType = audio/mpeg, Size = 200, Mtime = 2024-02-01T00:00:00Z, audio.duration = 100000, audio.year = 1999
  • d.mp3, MimeType = audio/mpeg, Size = 200, Mtime = 2024-04-01T00:00:00Z
  • x.jpg, MimeType = image/jpeg, photo.takenDateTime = 2020-06-01T12:00:00Z
  • y.jpg, MimeType = image/jpeg, photo.takenDateTime = 2010-06-01T12:00:00Z
  • z.jpg, MimeType = image/jpeg
  • apple.txt
  • Zebra.txt
  • Übung.txt
Case Query expected bleve OpenSearch same?
SORT-01 mediatype:audio reads by size, a tie in the order of the ids a.mp3, C.mp3, d.mp3, b.mp3 a.mp3, C.mp3, d.mp3, b.mp3 a.mp3, C.mp3, d.mp3, b.mp3 ✅
SORT-02 mediatype:audio reads by size descending, a tie still in the order of the ids b.mp3, C.mp3, d.mp3, a.mp3 b.mp3, C.mp3, d.mp3, a.mp3 b.mp3, C.mp3, d.mp3, a.mp3 ✅
SORT-03 mediatype:audio reads newest first d.mp3, b.mp3, C.mp3, a.mp3 d.mp3, b.mp3, C.mp3, a.mp3 d.mp3, b.mp3, C.mp3, a.mp3 ✅
SORT-04 mediatype:audio reads shortest track first, a file without a duration last C.mp3, b.mp3, a.mp3, d.mp3 C.mp3, b.mp3, a.mp3, d.mp3 C.mp3, b.mp3, a.mp3, d.mp3 ✅
SORT-05 mediatype:audio reads longest track first, a file without a duration still last a.mp3, b.mp3, C.mp3, d.mp3 a.mp3, b.mp3, C.mp3, d.mp3 a.mp3, b.mp3, C.mp3, d.mp3 ✅
SORT-06 mediatype:audio reads by year, within a year the longest track first b.mp3, C.mp3, a.mp3, d.mp3 b.mp3, C.mp3, a.mp3, d.mp3 b.mp3, C.mp3, a.mp3, d.mp3 ✅
SORT-07 name:"*.txt" reads by name in code point order: upper case before lower case, an umlaut after z Zebra.txt, apple.txt, Übung.txt Zebra.txt, apple.txt, Übung.txt Zebra.txt, apple.txt, Übung.txt ✅
SORT-08 mediatype:image reads latest photo first, a file without a date last x.jpg, y.jpg, z.jpg x.jpg, y.jpg, z.jpg x.jpg, y.jpg, z.jpg ✅
SORT-09 mediatype:image reads earliest photo first, a file without a date still last y.jpg, x.jpg, z.jpg y.jpg, x.jpg, z.jpg y.jpg, x.jpg, z.jpg ✅
SORT-10 mediatype:audio reads a field with several values is not sortable bad request bad request bad request ✅
SORT-11 mediatype:audio reads an unknown field is not sortable bad request bad request bad request ✅