RE: A bug in org.apache.nutch.parse.ParseUtil?

2015-04-20 Thread Arkadi.Kosmynin
parses is important, perhaps a similar isAnySuccess() function could help. Regards, Arkadi -Original Message- From: Sebastian Nagel [mailto:wastl.na...@googlemail.com] Sent: Saturday, 18 April 2015 7:37 AM To: user@nutch.apache.org Subject: Re: A bug in org.apache.nutch.parse.ParseUtil

Re: A bug in org.apache.nutch.parse.ParseUtil?

2015-04-20 Thread Mattmann, Chris A (3980)
at 12:20 AM To: user@nutch.apache.org user@nutch.apache.org Subject: RE: A bug in org.apache.nutch.parse.ParseUtil? Hi Sebastian, Yes, I considered parseResult.isSuccess(), but the problem is, it returns success only if all parses were successful. So, if the first parser succeeds, it will break

A bug in org.apache.nutch.parse.ParseUtil?

2015-04-17 Thread Arkadi.Kosmynin
Hi, From reading the code it is clear that it is designed to allow using several parsers to parse a document in a sequence, until it is successfully parsed. In practice, this does not work because these lines f (parseResult != null !parseResult.isEmpty()) return parseResult; break