Search Bar/Legacy: Difference between revisions

From Flashpoint Datahub
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
* A search query can contain any number of phrases (<code>tag:arcade tag:platformer platform:flash jump run</code>)
* A search query can contain any number of phrases (<code>tag:arcade tag:platformer platform:flash jump run</code>)
* Phrases containing spaces must be wrapped in quotes or will count as separate parameters (<code>developer:"Firstname Lastname"</code>)
* Phrases containing spaces must be wrapped in quotes or will count as separate parameters (<code>developer:"Firstname Lastname"</code>)
* Searches are not case sensitive, can have incomplete names and have a phrase backwards (both <code>nana cr</code> and <code>CRASH NANACA</code> will find NANACA†CRASH!!)
* Searches are not case sensitive, can have incomplete names (except tags) and a name backwards (both <code>nana cr</code> and <code>CRASH NANACA</code> will find NANACA†CRASH!!)
* Phrases without metadata prefixes are matched against a curation's Title, Alternate Titles, Developer and Publisher. The phrase only has to match one of these fields for the game to be included.
* Phrases without metadata prefixes are matched against a curation's Title, Alternate Titles, Developer and Publisher. The phrase only has to match one of these fields for the game to be included.


Line 65: Line 65:
|}
|}


<code>broken:</code> (in Infinity) and <code>extreme:</code> are special cases since their values are boolean; for example, <code>broken:</code> (without a phrase) will display games that are not broken while <code>broken:1</code> (or any other phrase) will search the opposite. You still must enable [[Extended FAQ#GameDisappeared|broken in Infinity]] (for Infinity users) and [[Extended FAQ#GameNotFound|extreme]] games in the Launcher to see these.
<code>broken:</code> and <code>extreme:</code> are special cases since their values are boolean; for example, <code>broken:</code> without a phrase will display games that are not broken in Infinity while <code>broken:1</code> (or any other phrase) will search the opposite. You still must enable [[Extended FAQ#GameDisappeared|broken in Infinity]] (for Infinity users) and [[Extended FAQ#GameNotFound|extreme]] games in the Launcher to see these.


==Other Prefixes==
==Other Prefixes==
Line 76: Line 76:
|-
|-
| no:
| no:
| The game's field that matches the phrase must be false or empty. <code>not:</code> and <code>missing:</code> have the same purpose.
| The field that matches the phrase must be false or empty. <code>not:</code> and <code>missing:</code> have the same purpose.
| <code>no:releaseDate</code>
| <code>no:releaseDate</code>
|-
|-
| has:
| has:
| The game's field that matches the phrase must be true or not empty. <code>is:</code> has the same purpose.
| The field that matches the phrase must be true or not empty. <code>is:</code> has the same purpose.
| <code>is:extreme</code>
| <code>is:extreme</code>
|-
|-

Revision as of 20:50, 10 January 2021

This article describes how the search system in the Flashpoint Launcher works.

Overview

  • Flashpoint uses docopt parsing: ([-][[(no|not|missing|is|has|<field>):]|[@|#|!]](<phrase>|"<phrase>"))...
  • A search query can contain any number of phrases (tag:arcade tag:platformer platform:flash jump run)
  • Phrases containing spaces must be wrapped in quotes or will count as separate parameters (developer:"Firstname Lastname")
  • Searches are not case sensitive, can have incomplete names (except tags) and a name backwards (both nana cr and CRASH NANACA will find NANACA†CRASH!!)
  • Phrases without metadata prefixes are matched against a curation's Title, Alternate Titles, Developer and Publisher. The phrase only has to match one of these fields for the game to be included.

Metadata Prefixes

Prefix Example
title: title:Bowman
alternateTitles: alternateTitles:II
series: series:Sonny
developer: developer:Devname
publisher: publisher:Newgrounds
playMode: playMode:"Single Player"
status: status:Partial
releaseDate: releaseDate:2010-01
version: version:2.0
language: language:pt
tag: tag:Toy
source: source:deviantart.com
platform: platform:Flash
applicationPath: applicationPath:Basilisk
launchCommand: launchCommand:localflash
notes: notes:Extras
originalDescription: originalDescription:ninja

broken: and extreme: are special cases since their values are boolean; for example, broken: without a phrase will display games that are not broken in Infinity while broken:1 (or any other phrase) will search the opposite. You still must enable broken in Infinity (for Infinity users) and extreme games in the Launcher to see these.

Other Prefixes

Prefix Explanation Example
- Excludes a parameter from the search. Can be used as part of other prefixes. -tag:Soccer
no: The field that matches the phrase must be false or empty. not: and missing: have the same purpose. no:releaseDate
has: The field that matches the phrase must be true or not empty. is: has the same purpose. is:extreme
@ Short-hand for developer:. @Devname
# Short-hand for tag:. #Shooter
! Short-hand for platform:. !Unity