Re: "Unsupported Content-Type" with "206 Partial OK"
Alexander Barkov <[email protected]> Wed, 18 Jan 2012 17:45:28 +0400
| Newsgroups | gmane.comp.web.mnogosearch.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Matthias,
On 01/09/2012 01:47 PM, Matthias Pigulla wrote:
> Hi all,
>
> I have set up the pdf2text converter and basically it seems to work fine. However, sometimes when indexing the following shows up in the logs:
>
> indexer[21124]: [21124]{01} URL: http://some.where/some/file/some-file.pdf
> indexer[21124]: [21124]{01} Status: 206 Partial OK
> indexer[21124]: [21124]{01} Starting external parser: 'pdftotext -q /tmp/ind.1.21124.in -'
> indexer[21124]: [21124]{01} Parser not executed, document status: 206
> indexer[21124]: [21124]{01} Unsupported Content-Type 'application/pdf'
> indexer[21124]: [21124]{01} Guesser: 2709h:186m ru-cp866
> indexer[21124]: [21124]{01} Guesser: 2709h:186m ru-utf-8
> indexer[21124]: [21124]{01} Guesser: 2522h:187m ga-iso-8859-1
> indexer[21124]: [21124]{01} Guesser: 2522h:187m hi-utf-8
> indexer[21124]: [21124]{01} Guesser: 2334h:188m de-iso-8859-1
> indexer[21124]: [21124]{01} Guesser: Lang: ru, Charset: cp866
>
> I don't really understand what's wrong there. Probably the "unsupported content-type" is misleading me?
>
> Can anybody explain what's going on?
Most likely the problem happens because of the document sizes.
mnoGoSearch downloads 1Mb from each document by default.
I guess your PDF files do not fit into this size.
Try to set a bigger MaxDocSize value:
http://www.mnogosearch.org/doc33/msearch-cmdref-maxdocsize.html
>
> Thanks!
> -mp.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]