|
| static List< String > | words (String freeText) |
| |
| static String | normalized (String freeText) |
| |
| static List< String > | usableProperties (String capabilities) |
| | The properties of PROPERTIES that the server can search.
|
| |
| static String | build (String freeText, List< String > properties) |
| |
| static String | buildAnyCase (String freeText, List< String > properties) |
| | The same, but every word is also looked for in its other spellings (all lower case, all upper case, first letter big): some servers compare case sensitive, and "westen" would not be found in "ImWestenNichtsNeues".
|
| |
The free text search of a UPnP server (issue #336), pure Java.
What the user types is split into words; every word must be found (and) in at least one of the properties that the server can search (or): (dc:title contains "a" or upnp:artist contains
"a") and (dc:title contains "b" or upnp:artist contains "b"). The properties come from the server's own list (GetSearchCapabilities); a server that lists none (or does not have the action) cannot be searched. The text is limited (words, characters) and quotes and backslashes are escaped as the ContentDirectory search syntax asks, so that the text can not change the meaning of the criteria.
| static String de.yaacc.upnp.search.SearchCriteria.buildAnyCase |
( |
String | freeText, |
|
|
List< String > | properties ) |
|
static |
The same, but every word is also looked for in its other spellings (all lower case, all upper case, first letter big): some servers compare case sensitive, and "westen" would not be found in "ImWestenNichtsNeues".
Longer, so it is the last thing tried when a search found nothing.