ipfs-search alpha

NEW: METADATA!

Search

Not much here yet, but try: GET /v1/search?q=something

Example

{
    "total": 54499,
    "max_score": 3.8840022,
    "page_size": 15,
    "page_count": 8,
    "hits": [
        {
            "hash": "QmXy6pjgbDyE3sR7ZRuwAxQJEkF3MRtNQXMGZYoZLxgDEj",
            "title": "water",
            "description": "some\ntext",
            "type": "directory",
            "size": 56151,
            "first-seen": "2018-01-16T23:52:10Z",
            "last-seen": "2018-01-16T23:54:10Z"
        },
        {
            "hash": "Qmbn93PicijZm2fd6MFCi7jLPZKuJ8gHpELcxo7MRPZzfq",
            "title": "water-year.png",
            "description": null,
            "type": "file",
            "size": 810
        }
        ...
    ]
}

Advanced queries

It's possible to query on specific fields, like the filename:
GET /v1/search?q=references.name:*.html

And by type (currently, `file` and `directory`):
GET /v1/search?q=_type=directory

Only consider objects seen within the last month:
GET /v1/search?q=last-seen:>now-1M

Find all items linking here:
GET /v1/search?q=references.parent_hash:QmVFHYaqPHJ7vg2DcszELhyQ7pJXLjHgx33FBwgbiWRQKi

List only images:
GET /v1/search?q=metadata.Content-Type:image*

Metadata

Brand new, Tika-extracted metadata for files on IPFS!

Try: GET /v1/metadata/QmSTAxpZCmotrXVRjiaftHJRW6wXpH8tXAyax94Jhxq8bZ/

Example

{
    "metadata":{
        "xmpDM:genre":[
            "Soundtrack"
        ],
        "xmpDM:composer":[
            "Nobuo Uematsu"
        ],
        "X-Parsed-By":[
            "org.apache.tika.parser.DefaultParser",
            "org.apache.tika.parser.mp3.Mp3Parser"
        ],
        "creator":[
            ""
        ],
        "xmpDM:album":[
            "\"Final Fantasy IX\" Original Soundtrack, Disk 4"
        ],
        "xmpDM:trackNumber":[
            "24"
        ],
        "xmpDM:releaseDate":[
            "2000"
        ],
        "meta:author":[
            ""
        ],
        "xmpDM:artist":[
            ""
        ],
        "dc:creator":[
            ""
        ],
        "xmpDM:audioCompressor":[
            "MP3"
        ],
        "resourceName":[
            "24-Coca Cola TV CM 1.mp3"
        ],
        "title":[
            "Coca Cola TV CM 1"
        ],
        "xmpDM:audioChannelType":[
            "Stereo"
        ],
        "version":[
            "MPEG 3 Layer III Version 1"
        ],
        "xmpDM:logComment":[
            "eng - \nhttp://www.ffdream.com"
        ],
        "xmpDM:audioSampleRate":[
            "44100"
        ],
        "channels":[
            "2"
        ],
        "dc:title":[
            "Coca Cola TV CM 1"
        ],
        "Author":[
            ""
        ],
        "xmpDM:duration":[
            "20218.76953125"
        ],
        "Content-Type":[
            "audio/mpeg"
        ],
        "samplerate":[
            "44100"
        ]
    },
    "version":1,
    "type":"file"
}
`

Code

https://github.com/ipfs-search/ipfs-search

Demo

Introduction during 'apps on IPFS' conference call.

Contact

Mathijs de Bruin info@ipfs-search.com