By default, search is focused only to actual epoch.
Objects are hierarchical. You can append "+" to object to match all its childrens
You can change epoch to search by parameter --epoch or by prefixing object
You can use
fcpc search "*" phrase="phrase"
fcpc search tag=sys:new:epoch
This will search all assets which contains all found tags (AND)
fcpc search tag="sys:*"
fcpc search ortag="sys:*"
fcpc search + 'tag!=job:assettagger'
Will find all object where name contains "fw"
fcpc search + 'name%%fw'
fcpc search 'asset/{ tag:"some:tag" }/'
Do not forget to escane ":"
fcpc search 'asset+/{ tag:"some\:tag" }/'
fcpc search "*"
fcpc search link+
fcpc search "+"
fcpc search asset+ name=hostname
fcpc search asset+ "~" person+
fcpc search '(asset+ ~owned-by person+) ~is asset+'
You need to use epochid, not epoch name!
fcpc search epochid:query
fcpc search init:host+
fcpc search "*:host+"
usage: fcpc search [-h] [--search.filter.tag Tag] [--search.use_linktagger Bool] [--search.filter.not_tag Tag]
[--search.filter.intransaction {0,1}] [--search.filter.deleted {0,1}]
[--search.filter.limit SEARCH.FILTER.LIMIT] [--search.object.links {none,joinurls,append,count}]
[--search.show.output {cli,dot,circo}]
[QUERY ...]
positional arguments:
QUERY Query or objects[search] (default: None)
optional arguments:
-h, --help show this help message and exit
--search.filter.tag Tag
Filter objects to match only this tag.[Defined:fcplib.cmd.search] (default: None)
--search.use_linktagger Bool
Use new linktagger features for speedup[Defined:fcplib.cmd.search] (default: 0)
Choices:
0
1
--search.filter.not_tag Tag
Filter objects to match only objects missing this tag.[Defined:fcplib.cmd.search] (default:
None)
--search.filter.intransaction {0,1}
Filter objects which have transaction tag (incomplete
transactions).[Defined:fcplib.cmd.search] (default: 1)
Choices:
0
1
--search.filter.deleted {0,1}
Filter objects which are deleted.[Defined:fcplib.cmd.search] (default: 1)
Choices:
0
1
--search.filter.limit SEARCH.FILTER.LIMIT
Search limit. Will not return more than this objects. Mainly for
testing.[Defined:fcplib.cmd.search] (default: 20)
--search.object.links {none,joinurls,append,count}
How to deal with object links[Defined:fcplib.cmd.search] (default: none)
Choices:
none
joinurls
append
count
--search.show.output {cli,dot,circo}
Output format to show[Defined:fcplib.cmd.search] (default: cli)
Choices:
cli
dot
circo
fcpc --search.filter.limit=0 --output.column=linkleft,left_name,left_email,right_name search person+ "~is-owner" host+
fcpc --output.format=csv --search.filter.limit=0 --output.column=linkleft,left_name,left_email,right_name search person+ "~is-owner" host+
fcpc --output.file=a.csv --output.format=csv --search.filter.limit=0 --output.column=linkleft,left_name,left_email,right_name search person+ "~is-owner" host+
You can also type " |less " at the end of these commands to be able to "scroll" easier through the results using the arrow buttons (doesn't work for commands including the option " --output.file=a.csv ", since they create a new file and doesn't show the results in the command line)