You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@manifoldcf.apache.org by Erlend Garåsen <e....@usit.uio.no> on 2011/03/30 17:39:14 UTC
[TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Solr 1.4.1 has several bugs which makes it difficult to deploy MCF on a
application server such as Resin. I have struggled a lot with some of
these bugs and decided to share my experiences in case others have the
same problems.
First I figured out that I had to upgrade Tika to version 0.8 in order
to extract the content of MS Office documents etc. Solr 1.4.1 ships with
Tika 0.4 and will not work:
https://issues.apache.org/jira/browse/SOLR-1902
Here you have basically two options:
1. Install the following branch:
http://svn.apache.org/viewvc/lucene/solr/branches/branch-1.4/
2. Install the latest version from trunk (not recommended for production
use).
Then I figured out that I couldn't parse dates correctly. You have the
option in ExtractingRequestHandler to specify different date formats by
the following example:
<lst name="date.formats">
<str>yyyy-MM-dd</str>
<str>dd.MM.yyyy</str>
</lst>
This will cause a lazy loading error due to the following bug:
https://issues.apache.org/jira/browse/SOLR-1756
You have the following workaround:
1. Install the branch mentioned above and then install the following patch:
https://issues.apache.org/jira/secure/attachment/12434831/SOLR-1756.patch
2. Install the latest version from trunk.
Remember to rebuild Solr and place the necessary jar files in a separate
folder which your application server has access to
(apache-solr-cell*.jar, Tika and its depencencies).
Erlend
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
On 05.04.11 16.30, Karl Wright wrote:
> That's great news! There was also some rumor that the extracting
> update request handler had been moved to contrib, and thus you had to
> do special stuff in order to get ManifoldCF to work with Solr. I'm
> hoping that was just rumor, though - any comments?
The extracting request handler, or Solr Cell, is placed in the contrib
folder in Solr 1.4.1 as well. Yes, you have to do a couple of things as
long as you do not run the example (Jetty) version of Solr.
1. Configure a lib directory in <solr.home>
2. Make sure that this lib directory will be read (edit solrconfig.xml)
3. Copy all jars from contrib/extraction/lib/ to lib
4. Copy dist/apache-solr-cell-3.1.0.jar to lib (Solr Cell is not
included in solr.war).
That's it!
I tested this on Resin 4.0.15 today and managed to parse a lot of
different document formats without any problems.
Erlend
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Karl Wright <da...@gmail.com>.
That's great news! There was also some rumor that the extracting
update request handler had been moved to contrib, and thus you had to
do special stuff in order to get ManifoldCF to work with Solr. I'm
hoping that was just rumor, though - any comments?
Karl
On Tue, Apr 5, 2011 at 8:59 AM, Erlend Garåsen <e....@usit.uio.no> wrote:
> On 04.04.11 17.32, Erlend Garåsen wrote:
>
>> It will probably work out-of-the box.
>
> Yes, Solr 3.1 is the version we have waited for. It works almost
> out-of-the-box. The only thing which doesn't work properly is the encoding
> issue I mentioned about Norwegian characters for some PDF documents.
>
> I will open a Jira ticket (Solr) about this, because I think they should
> upgrade the version of PDFBox to 1.5.0.
>
> Erlend
>
> --
> Erlend Garåsen
> Center for Information Technology Services
> University of Oslo
> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
On 04.04.11 17.32, Erlend Garåsen wrote:
> It will probably work out-of-the box.
Yes, Solr 3.1 is the version we have waited for. It works almost
out-of-the-box. The only thing which doesn't work properly is the
encoding issue I mentioned about Norwegian characters for some PDF
documents.
I will open a Jira ticket (Solr) about this, because I think they should
upgrade the version of PDFBox to 1.5.0.
Erlend
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
Thanks for your information about the latest Solr release. I will start
to look at this tomorrow.
It will probably work out-of-the box.
Erlend
On 04.04.11 17.26, Karl Wright wrote:
> Good to know that it can be made to work. ;-)
>
> We should probably look at Lucene/Solr 3.1, which was just released,
> and is the next Solr version after 1.4.1, and see whether anything
> special is needed there.
>
> Karl
>
>
> On Mon, Apr 4, 2011 at 11:01 AM, Erlend Garåsen<e....@usit.uio.no> wrote:
>>
>> After I downloaded and replaced the following jars, I no longer have a
>> character encoding problem:
>> pdfbox-1.5.0.jar
>> fontbox-1.5.0.jar
>> jempbox-1.5.0.jar
>>
>> Erlend
>>
>> On 31.03.11 14.35, Karl Wright wrote:
>>>
>>> It might be worth cross-posting this to the Tika user or dev list.
>>> Jukka Zitting is one of the principal Tika developers and he's also a
>>> committer for MCF, but I'm not sure he'll notice it go by otherwise.
>>>
>>> In case you're wondering how to update the MCF FAQ, it's in the Wiki
>>> so all you need to do is sign up and you'll be able to update it.
>>> https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ
>>>
>>> Karl
>>>
>>> On Thu, Mar 31, 2011 at 6:59 AM, Erlend Garåsen<e....@usit.uio.no>
>>> wrote:
>>>>
>>>> Oh, there's more unfortunately. Some of the Tika dependencies need to be
>>>> further updated. I couldn't parse the date from PDF documents correctly.
>>>> I'm
>>>> not quite sure which of the extracting libraries causing this problem
>>>> (probably pdfbox). Anyway, I can now extract contents from the following
>>>> document formats without any problems:
>>>> - HTML
>>>> - RTF
>>>> - DOC
>>>> - DOCX
>>>> - ODT
>>>> - XLSX
>>>> - XLS
>>>> - SXW
>>>> - PDF
>>>>
>>>> I'm using the following jars:
>>>> apache-solr-cell-1.4.2-dev.jar
>>>> geronimo-stax-api_1.0_spec-1.0.1.jar
>>>> poi-scratchpad-3.7.jar
>>>> asm-3.1.jar
>>>> icu4j-4_6.jar
>>>> rome-0.9.jar
>>>> bcmail-jdk15-1.45.jar
>>>> jempbox-1.3.1.jar
>>>> tagsoup-1.2.jar
>>>> bcprov-jdk15-1.45.jar
>>>> metadata-extractor-2.4.0-beta-1.jar
>>>> tika-core-0.8.jar
>>>> boilerpipe-1.1.0.jar
>>>> netcdf-4.2.jar
>>>> tika-parsers-0.8.jar
>>>> commons-compress-1.1.jar
>>>> pdfbox-1.3.1.jar
>>>> commons-logging-1.1.1.jar
>>>> poi-3.7.jar
>>>> xercesImpl-2.8.1.jar
>>>> dom4j-1.6.1.jar
>>>> poi-ooxml-3.7.jar
>>>> xml-apis-1.0.b2.jar
>>>> fontbox-1.3.1.jar
>>>> poi-ooxml-schemas-3.7.jar
>>>> xmlbeans-2.3.0.jar
>>>>
>>>> But I still have some problems with PDF documents[1]. I'm not sure
>>>> whether
>>>> it is a pdfbox bug, but Norwegian characters like æ, ø and å cannot be
>>>> displayed correctly after Solr has indexed the document. The characters
>>>> are
>>>> replaced by a question mark.
>>>>
>>>> [1] http://ridder.uio.no/dokument.pdf
>>>>
>>>> Erlend
>>>>
>>>> On 30.03.11 18.09, Karl Wright wrote:
>>>>>
>>>>> Certainly it makes sense to start with the FAQ, especially for places
>>>>> where you are tripping over known bugs. We can always do a site page
>>>>> later.
>>>>>
>>>>> Thanks!
>>>>> Karl
>>>>>
>>>>> On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
>>>>> <e....@usit.uio.no> wrote:
>>>>>>
>>>>>> On 30.03.11 18.00, Karl Wright wrote:
>>>>>>>
>>>>>>> It would be great if this information went at least into the FAQ, and
>>>>>>> even better if we added a page to the site documentation. I'm
>>>>>>> thinking maybe a whole page titled "Integrating with Solr", which
>>>>>>> would walk you through the process and the pitfalls. What do you
>>>>>>> think?
>>>>>>
>>>>>> Yes, I think so.
>>>>>>
>>>>>> The next version of Solr will probably be released soon, and then it
>>>>>> will
>>>>>> be
>>>>>> much easier to integrate Solr. Maybe it is sufficient to add the
>>>>>> information
>>>>>> into the FAQ since the problem mentioned only affects 1.4.1?
>>>>>>
>>>>>> Erlend
>>>>>>
>>>>>> --
>>>>>> Erlend Garåsen
>>>>>> Center for Information Technology Services
>>>>>> University of Oslo
>>>>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>>>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>>>>> 31050
>>>>>>
>>>>
>>>>
>>>> --
>>>> Erlend Garåsen
>>>> Center for Information Technology Services
>>>> University of Oslo
>>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>>> 31050
>>>>
>>
>>
>> --
>> Erlend Garåsen
>> Center for Information Technology Services
>> University of Oslo
>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>>
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Karl Wright <da...@gmail.com>.
Good to know that it can be made to work. ;-)
We should probably look at Lucene/Solr 3.1, which was just released,
and is the next Solr version after 1.4.1, and see whether anything
special is needed there.
Karl
On Mon, Apr 4, 2011 at 11:01 AM, Erlend Garåsen <e....@usit.uio.no> wrote:
>
> After I downloaded and replaced the following jars, I no longer have a
> character encoding problem:
> pdfbox-1.5.0.jar
> fontbox-1.5.0.jar
> jempbox-1.5.0.jar
>
> Erlend
>
> On 31.03.11 14.35, Karl Wright wrote:
>>
>> It might be worth cross-posting this to the Tika user or dev list.
>> Jukka Zitting is one of the principal Tika developers and he's also a
>> committer for MCF, but I'm not sure he'll notice it go by otherwise.
>>
>> In case you're wondering how to update the MCF FAQ, it's in the Wiki
>> so all you need to do is sign up and you'll be able to update it.
>> https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ
>>
>> Karl
>>
>> On Thu, Mar 31, 2011 at 6:59 AM, Erlend Garåsen<e....@usit.uio.no>
>> wrote:
>>>
>>> Oh, there's more unfortunately. Some of the Tika dependencies need to be
>>> further updated. I couldn't parse the date from PDF documents correctly.
>>> I'm
>>> not quite sure which of the extracting libraries causing this problem
>>> (probably pdfbox). Anyway, I can now extract contents from the following
>>> document formats without any problems:
>>> - HTML
>>> - RTF
>>> - DOC
>>> - DOCX
>>> - ODT
>>> - XLSX
>>> - XLS
>>> - SXW
>>> - PDF
>>>
>>> I'm using the following jars:
>>> apache-solr-cell-1.4.2-dev.jar
>>> geronimo-stax-api_1.0_spec-1.0.1.jar
>>> poi-scratchpad-3.7.jar
>>> asm-3.1.jar
>>> icu4j-4_6.jar
>>> rome-0.9.jar
>>> bcmail-jdk15-1.45.jar
>>> jempbox-1.3.1.jar
>>> tagsoup-1.2.jar
>>> bcprov-jdk15-1.45.jar
>>> metadata-extractor-2.4.0-beta-1.jar
>>> tika-core-0.8.jar
>>> boilerpipe-1.1.0.jar
>>> netcdf-4.2.jar
>>> tika-parsers-0.8.jar
>>> commons-compress-1.1.jar
>>> pdfbox-1.3.1.jar
>>> commons-logging-1.1.1.jar
>>> poi-3.7.jar
>>> xercesImpl-2.8.1.jar
>>> dom4j-1.6.1.jar
>>> poi-ooxml-3.7.jar
>>> xml-apis-1.0.b2.jar
>>> fontbox-1.3.1.jar
>>> poi-ooxml-schemas-3.7.jar
>>> xmlbeans-2.3.0.jar
>>>
>>> But I still have some problems with PDF documents[1]. I'm not sure
>>> whether
>>> it is a pdfbox bug, but Norwegian characters like æ, ø and å cannot be
>>> displayed correctly after Solr has indexed the document. The characters
>>> are
>>> replaced by a question mark.
>>>
>>> [1] http://ridder.uio.no/dokument.pdf
>>>
>>> Erlend
>>>
>>> On 30.03.11 18.09, Karl Wright wrote:
>>>>
>>>> Certainly it makes sense to start with the FAQ, especially for places
>>>> where you are tripping over known bugs. We can always do a site page
>>>> later.
>>>>
>>>> Thanks!
>>>> Karl
>>>>
>>>> On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
>>>> <e....@usit.uio.no> wrote:
>>>>>
>>>>> On 30.03.11 18.00, Karl Wright wrote:
>>>>>>
>>>>>> It would be great if this information went at least into the FAQ, and
>>>>>> even better if we added a page to the site documentation. I'm
>>>>>> thinking maybe a whole page titled "Integrating with Solr", which
>>>>>> would walk you through the process and the pitfalls. What do you
>>>>>> think?
>>>>>
>>>>> Yes, I think so.
>>>>>
>>>>> The next version of Solr will probably be released soon, and then it
>>>>> will
>>>>> be
>>>>> much easier to integrate Solr. Maybe it is sufficient to add the
>>>>> information
>>>>> into the FAQ since the problem mentioned only affects 1.4.1?
>>>>>
>>>>> Erlend
>>>>>
>>>>> --
>>>>> Erlend Garåsen
>>>>> Center for Information Technology Services
>>>>> University of Oslo
>>>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>>>> 31050
>>>>>
>>>
>>>
>>> --
>>> Erlend Garåsen
>>> Center for Information Technology Services
>>> University of Oslo
>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>> 31050
>>>
>
>
> --
> Erlend Garåsen
> Center for Information Technology Services
> University of Oslo
> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
After I downloaded and replaced the following jars, I no longer have a
character encoding problem:
pdfbox-1.5.0.jar
fontbox-1.5.0.jar
jempbox-1.5.0.jar
Erlend
On 31.03.11 14.35, Karl Wright wrote:
> It might be worth cross-posting this to the Tika user or dev list.
> Jukka Zitting is one of the principal Tika developers and he's also a
> committer for MCF, but I'm not sure he'll notice it go by otherwise.
>
> In case you're wondering how to update the MCF FAQ, it's in the Wiki
> so all you need to do is sign up and you'll be able to update it.
> https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ
>
> Karl
>
> On Thu, Mar 31, 2011 at 6:59 AM, Erlend Garåsen<e....@usit.uio.no> wrote:
>>
>> Oh, there's more unfortunately. Some of the Tika dependencies need to be
>> further updated. I couldn't parse the date from PDF documents correctly. I'm
>> not quite sure which of the extracting libraries causing this problem
>> (probably pdfbox). Anyway, I can now extract contents from the following
>> document formats without any problems:
>> - HTML
>> - RTF
>> - DOC
>> - DOCX
>> - ODT
>> - XLSX
>> - XLS
>> - SXW
>> - PDF
>>
>> I'm using the following jars:
>> apache-solr-cell-1.4.2-dev.jar
>> geronimo-stax-api_1.0_spec-1.0.1.jar
>> poi-scratchpad-3.7.jar
>> asm-3.1.jar
>> icu4j-4_6.jar
>> rome-0.9.jar
>> bcmail-jdk15-1.45.jar
>> jempbox-1.3.1.jar
>> tagsoup-1.2.jar
>> bcprov-jdk15-1.45.jar
>> metadata-extractor-2.4.0-beta-1.jar
>> tika-core-0.8.jar
>> boilerpipe-1.1.0.jar
>> netcdf-4.2.jar
>> tika-parsers-0.8.jar
>> commons-compress-1.1.jar
>> pdfbox-1.3.1.jar
>> commons-logging-1.1.1.jar
>> poi-3.7.jar
>> xercesImpl-2.8.1.jar
>> dom4j-1.6.1.jar
>> poi-ooxml-3.7.jar
>> xml-apis-1.0.b2.jar
>> fontbox-1.3.1.jar
>> poi-ooxml-schemas-3.7.jar
>> xmlbeans-2.3.0.jar
>>
>> But I still have some problems with PDF documents[1]. I'm not sure whether
>> it is a pdfbox bug, but Norwegian characters like æ, ø and å cannot be
>> displayed correctly after Solr has indexed the document. The characters are
>> replaced by a question mark.
>>
>> [1] http://ridder.uio.no/dokument.pdf
>>
>> Erlend
>>
>> On 30.03.11 18.09, Karl Wright wrote:
>>>
>>> Certainly it makes sense to start with the FAQ, especially for places
>>> where you are tripping over known bugs. We can always do a site page
>>> later.
>>>
>>> Thanks!
>>> Karl
>>>
>>> On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
>>> <e....@usit.uio.no> wrote:
>>>>
>>>> On 30.03.11 18.00, Karl Wright wrote:
>>>>>
>>>>> It would be great if this information went at least into the FAQ, and
>>>>> even better if we added a page to the site documentation. I'm
>>>>> thinking maybe a whole page titled "Integrating with Solr", which
>>>>> would walk you through the process and the pitfalls. What do you
>>>>> think?
>>>>
>>>> Yes, I think so.
>>>>
>>>> The next version of Solr will probably be released soon, and then it will
>>>> be
>>>> much easier to integrate Solr. Maybe it is sufficient to add the
>>>> information
>>>> into the FAQ since the problem mentioned only affects 1.4.1?
>>>>
>>>> Erlend
>>>>
>>>> --
>>>> Erlend Garåsen
>>>> Center for Information Technology Services
>>>> University of Oslo
>>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>>> 31050
>>>>
>>
>>
>> --
>> Erlend Garåsen
>> Center for Information Technology Services
>> University of Oslo
>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>>
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Karl Wright <da...@gmail.com>.
It might be worth cross-posting this to the Tika user or dev list.
Jukka Zitting is one of the principal Tika developers and he's also a
committer for MCF, but I'm not sure he'll notice it go by otherwise.
In case you're wondering how to update the MCF FAQ, it's in the Wiki
so all you need to do is sign up and you'll be able to update it.
https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ
Karl
On Thu, Mar 31, 2011 at 6:59 AM, Erlend Garåsen <e....@usit.uio.no> wrote:
>
> Oh, there's more unfortunately. Some of the Tika dependencies need to be
> further updated. I couldn't parse the date from PDF documents correctly. I'm
> not quite sure which of the extracting libraries causing this problem
> (probably pdfbox). Anyway, I can now extract contents from the following
> document formats without any problems:
> - HTML
> - RTF
> - DOC
> - DOCX
> - ODT
> - XLSX
> - XLS
> - SXW
> - PDF
>
> I'm using the following jars:
> apache-solr-cell-1.4.2-dev.jar
> geronimo-stax-api_1.0_spec-1.0.1.jar
> poi-scratchpad-3.7.jar
> asm-3.1.jar
> icu4j-4_6.jar
> rome-0.9.jar
> bcmail-jdk15-1.45.jar
> jempbox-1.3.1.jar
> tagsoup-1.2.jar
> bcprov-jdk15-1.45.jar
> metadata-extractor-2.4.0-beta-1.jar
> tika-core-0.8.jar
> boilerpipe-1.1.0.jar
> netcdf-4.2.jar
> tika-parsers-0.8.jar
> commons-compress-1.1.jar
> pdfbox-1.3.1.jar
> commons-logging-1.1.1.jar
> poi-3.7.jar
> xercesImpl-2.8.1.jar
> dom4j-1.6.1.jar
> poi-ooxml-3.7.jar
> xml-apis-1.0.b2.jar
> fontbox-1.3.1.jar
> poi-ooxml-schemas-3.7.jar
> xmlbeans-2.3.0.jar
>
> But I still have some problems with PDF documents[1]. I'm not sure whether
> it is a pdfbox bug, but Norwegian characters like æ, ø and å cannot be
> displayed correctly after Solr has indexed the document. The characters are
> replaced by a question mark.
>
> [1] http://ridder.uio.no/dokument.pdf
>
> Erlend
>
> On 30.03.11 18.09, Karl Wright wrote:
>>
>> Certainly it makes sense to start with the FAQ, especially for places
>> where you are tripping over known bugs. We can always do a site page
>> later.
>>
>> Thanks!
>> Karl
>>
>> On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
>> <e....@usit.uio.no> wrote:
>>>
>>> On 30.03.11 18.00, Karl Wright wrote:
>>>>
>>>> It would be great if this information went at least into the FAQ, and
>>>> even better if we added a page to the site documentation. I'm
>>>> thinking maybe a whole page titled "Integrating with Solr", which
>>>> would walk you through the process and the pitfalls. What do you
>>>> think?
>>>
>>> Yes, I think so.
>>>
>>> The next version of Solr will probably be released soon, and then it will
>>> be
>>> much easier to integrate Solr. Maybe it is sufficient to add the
>>> information
>>> into the FAQ since the problem mentioned only affects 1.4.1?
>>>
>>> Erlend
>>>
>>> --
>>> Erlend Garåsen
>>> Center for Information Technology Services
>>> University of Oslo
>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP:
>>> 31050
>>>
>
>
> --
> Erlend Garåsen
> Center for Information Technology Services
> University of Oslo
> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
Oh, there's more unfortunately. Some of the Tika dependencies need to be
further updated. I couldn't parse the date from PDF documents correctly.
I'm not quite sure which of the extracting libraries causing this
problem (probably pdfbox). Anyway, I can now extract contents from the
following document formats without any problems:
- HTML
- RTF
- DOC
- DOCX
- ODT
- XLSX
- XLS
- SXW
- PDF
I'm using the following jars:
apache-solr-cell-1.4.2-dev.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
poi-scratchpad-3.7.jar
asm-3.1.jar
icu4j-4_6.jar
rome-0.9.jar
bcmail-jdk15-1.45.jar
jempbox-1.3.1.jar
tagsoup-1.2.jar
bcprov-jdk15-1.45.jar
metadata-extractor-2.4.0-beta-1.jar
tika-core-0.8.jar
boilerpipe-1.1.0.jar
netcdf-4.2.jar
tika-parsers-0.8.jar
commons-compress-1.1.jar
pdfbox-1.3.1.jar
commons-logging-1.1.1.jar
poi-3.7.jar
xercesImpl-2.8.1.jar
dom4j-1.6.1.jar
poi-ooxml-3.7.jar
xml-apis-1.0.b2.jar
fontbox-1.3.1.jar
poi-ooxml-schemas-3.7.jar
xmlbeans-2.3.0.jar
But I still have some problems with PDF documents[1]. I'm not sure
whether it is a pdfbox bug, but Norwegian characters like æ, ø and å
cannot be displayed correctly after Solr has indexed the document. The
characters are replaced by a question mark.
[1] http://ridder.uio.no/dokument.pdf
Erlend
On 30.03.11 18.09, Karl Wright wrote:
> Certainly it makes sense to start with the FAQ, especially for places
> where you are tripping over known bugs. We can always do a site page
> later.
>
> Thanks!
> Karl
>
> On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
> <e....@usit.uio.no> wrote:
>> On 30.03.11 18.00, Karl Wright wrote:
>>>
>>> It would be great if this information went at least into the FAQ, and
>>> even better if we added a page to the site documentation. I'm
>>> thinking maybe a whole page titled "Integrating with Solr", which
>>> would walk you through the process and the pitfalls. What do you
>>> think?
>>
>> Yes, I think so.
>>
>> The next version of Solr will probably be released soon, and then it will be
>> much easier to integrate Solr. Maybe it is sufficient to add the information
>> into the FAQ since the problem mentioned only affects 1.4.1?
>>
>> Erlend
>>
>> --
>> Erlend Garåsen
>> Center for Information Technology Services
>> University of Oslo
>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>>
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Karl Wright <da...@gmail.com>.
Certainly it makes sense to start with the FAQ, especially for places
where you are tripping over known bugs. We can always do a site page
later.
Thanks!
Karl
On Wed, Mar 30, 2011 at 12:07 PM, Erlend Garåsen
<e....@usit.uio.no> wrote:
> On 30.03.11 18.00, Karl Wright wrote:
>>
>> It would be great if this information went at least into the FAQ, and
>> even better if we added a page to the site documentation. I'm
>> thinking maybe a whole page titled "Integrating with Solr", which
>> would walk you through the process and the pitfalls. What do you
>> think?
>
> Yes, I think so.
>
> The next version of Solr will probably be released soon, and then it will be
> much easier to integrate Solr. Maybe it is sufficient to add the information
> into the FAQ since the problem mentioned only affects 1.4.1?
>
> Erlend
>
> --
> Erlend Garåsen
> Center for Information Technology Services
> University of Oslo
> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Erlend Garåsen <e....@usit.uio.no>.
On 30.03.11 18.00, Karl Wright wrote:
> It would be great if this information went at least into the FAQ, and
> even better if we added a page to the site documentation. I'm
> thinking maybe a whole page titled "Integrating with Solr", which
> would walk you through the process and the pitfalls. What do you
> think?
Yes, I think so.
The next version of Solr will probably be released soon, and then it
will be much easier to integrate Solr. Maybe it is sufficient to add the
information into the FAQ since the problem mentioned only affects 1.4.1?
Erlend
--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
Re: [TIP] Workaround for Solr bugs when Indexing Solr 1.4.1
Posted by Karl Wright <da...@gmail.com>.
It would be great if this information went at least into the FAQ, and
even better if we added a page to the site documentation. I'm
thinking maybe a whole page titled "Integrating with Solr", which
would walk you through the process and the pitfalls. What do you
think?
Karl
On Wed, Mar 30, 2011 at 11:39 AM, Erlend Garåsen
<e....@usit.uio.no> wrote:
>
> Solr 1.4.1 has several bugs which makes it difficult to deploy MCF on a
> application server such as Resin. I have struggled a lot with some of these
> bugs and decided to share my experiences in case others have the same
> problems.
>
> First I figured out that I had to upgrade Tika to version 0.8 in order to
> extract the content of MS Office documents etc. Solr 1.4.1 ships with Tika
> 0.4 and will not work:
> https://issues.apache.org/jira/browse/SOLR-1902
>
> Here you have basically two options:
> 1. Install the following branch:
> http://svn.apache.org/viewvc/lucene/solr/branches/branch-1.4/
> 2. Install the latest version from trunk (not recommended for production
> use).
>
> Then I figured out that I couldn't parse dates correctly. You have the
> option in ExtractingRequestHandler to specify different date formats by the
> following example:
> <lst name="date.formats">
> <str>yyyy-MM-dd</str>
> <str>dd.MM.yyyy</str>
> </lst>
>
> This will cause a lazy loading error due to the following bug:
> https://issues.apache.org/jira/browse/SOLR-1756
>
> You have the following workaround:
> 1. Install the branch mentioned above and then install the following patch:
> https://issues.apache.org/jira/secure/attachment/12434831/SOLR-1756.patch
> 2. Install the latest version from trunk.
>
> Remember to rebuild Solr and place the necessary jar files in a separate
> folder which your application server has access to (apache-solr-cell*.jar,
> Tika and its depencencies).
>
> Erlend
>
> --
> Erlend Garåsen
> Center for Information Technology Services
> University of Oslo
> P.O. Box 1086 Blindern, N-0317 OSLO, Norway
> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050
>