| 13 | | || [Help/ExpertMode Expert mode off]: [[br]] [[Image(9229-search-expert-false-with-tooltip.png)]] || . || |
| 14 | | || [Help/ExpertMode Expert mode on]: [[br]] [[Image(9229-search-expert-true.png)]] || - '''standard/regular expression/MapCSS selector''' radio button, see sections below for details - '''add toolbar button''' covered in section [Help/Action/Search#SavesearchqueryinMaintoolbar] || |
| | 18 | == Expert mode ==#ExpertMode |
| | 19 | In [wikitr:/Help/ExpertMode expert mode], the following options are added: |
| | 20 | * more keywords are listed (they work also in non-expert mode, but are hidden in the dialog) |
| | 21 | * **standard/regular expression/MapCSS selector** radio button, see sections below for details |
| | 22 | * **all objects** check box to include **''deleted''** and **''incomplete''** objects in the search |
| | 23 | * **add toolbar button** see [wikitr:/Help/Action/Search#SavesearchqueryinMaintoolbar save search query in main toolbar] below. |
| 17 | | == Keywords == |
| 18 | | |
| 19 | | || Keyword || Supports ranges || Range separator || Description || |
| 20 | | || id || yes || - || Search for objects with specific ids ([Help/Concepts/Object#Objectids]) || |
| 21 | | || version || yes || - || Search for objects with specific version ([Help/Concepts/Object#Objectversions]). `version:0` is equivalent to keyword `new`. Note that `version:-1` will match `new` objects. || |
| 22 | | || type || no || n/a || Only 3 possible values: `type:node`, `type:way`, `type:relation` ([Help/Concepts/Object#NodesWaysRelations]) || |
| 23 | | || user || no || n/a || "anonymous" is a special word? i.e. `user:anonymous` |
| 24 | | || role || || |
| 25 | | || changeset || yes || - || || |
| 26 | | || nodes || yes || - || Search for objects with number of nodes within range. Note that `nodes:-2` query won't match single nodes! || |
| 27 | | || ways || || |
| 28 | | || tags || yes || - || Search for objects with tag count of tags within range, regardless of "discardable tags" and "uninteresting tags" ([Help/Concepts/Object#Tags]). Note that `tags:-1` will also match tagless objects! || |
| 29 | | || areasize || || |
| 30 | | || waylength || || |
| 31 | | || modified || no || n/a || Confusing name: will select (old and modified objects) or (completely new objects). || |
| 32 | | || selected || || |
| 33 | | || incomplete || || |
| 34 | | || untagged || no || n/a || This modifier differs from `tags:0` since it will ignore all "discardable" and "uninteresting tags" (description, attribution, source, source_ref, source:, comment, converted_by, watch, watch:,)! [https://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java#L678 more info] || |
| 35 | | || closed || || |
| 36 | | || new || || |
| 37 | | || indownloadedarea || || |
| 38 | | || allindownloadedarea || || |
| 39 | | || inview || || |
| 40 | | || allinview || || |
| 41 | | || timestamp || yes || / || min/max pair with two notes. If min timestap is empty: use lowest possible date (1980). If max timestamp is empty: use current time. || |
| 42 | | || nth || || |
| 43 | | || nth% || || |
| 44 | | || hasRole || || |
| 45 | | || parent || || |
| 46 | | || child || || |
| 47 | | |
| 48 | | == Examples == |
| 49 | | |
| | 27 | == Examples ==#Examples |
| 64 | | To ''save search as a button'' if you check '''add toolbar button''' checkbox, as soon as you click on [[Image(source:trunk/images/dialogs/search.png,middle)]] '''Start Search''', a button will be added to the Main Toolbar. which will execute the defined search expression each time, you press the button. |
| 65 | | |
| 66 | | [wiki:Help/Preferences/Toolbar#Previouslysavedsearchresults Toolbar Customization will let you modify icon, search query and an icon]. |
| 67 | | |
| 68 | | As with any "button" [Help/Preferences/Shortcuts you can always assign shortcut to it]. |
| | 43 | * [[JOSMImage(preferences/toolbar,link=,24,middle)]] [wikitr:/Help/Preferences/Toolbar#Previouslysavedsearchresults Toolbar Customization] will let you modify icon, search query and tooltip. |
| | 44 | * As with any button you can always assign a shortcut to it in [[JOSMImage(preferences/shortcuts,link=,24,middle)]] [wikitr:/Help/Preferences/Shortcuts Shortcut Preferences]. |
| 82 | | JOSM will then attempt to load that URL, and select any objects that it finds referenced in that file. |
| 83 | | JOSM will look for XML tags "way", "node", and "relation" in the document (clarify? examples?), and use their id attribute . |
| 84 | | You can access another OSM file on your hard disk this way and have JOSM select all objects that are present in the file (provided they are present in JOSM's dataset too). |
| | 55 | * JOSM will then attempt to load that URL, and select any objects that it finds referenced in that file. |
| | 56 | * JOSM will look for XML tags "way", "node", and "relation" in the document (clarify? examples?), and use their id attribute . |
| | 57 | * You can access another OSM file on your hard disk this way and have JOSM select all objects that are present in the file (provided they are present in JOSM's dataset too). |