Skip to content

Content Search: doc parameter must match the original filename minus extension #149

@markpbaggett

Description

@markpbaggett

For fulltext/inside.php requests, the doc parameter must match the original filename minus extension.

For instance, this item is called gray-diary but the original filename is GrayDiary.pdf.

Currently, we make a request like:

https://ia601306.us.archive.org/fulltext/inside.php?item_id=gray-diary&doc=graydiary&path=/33/items/gray-diary&q=manufacturing

That returns an error like:

{"error": "No hOCR or Abbyy file present"}

If we take the value of the filename at index 0 and remove the extension, we get the matching results:

https://ia601306.us.archive.org/fulltext/inside.php?item_id=gray-diary&doc=GrayDiary&path=/33/items/gray-diary&q=manufacturing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions