Re: Problem adding fields when indexing a pdf (add-on)
Thanks for bringing closure to this, it may very well help the _next_ person to have the same problem. Erick On Thu, Mar 13, 2014 at 6:51 AM, Croci Francesco Luigi (ID SWS) fcr...@id.ethz.ch wrote: Ok. Maybe I found the problem: in the solrconfig.xml I have str name=lowernamestrue/str I set it to false and now rmDocumentTitle is there too... Regards Francesco -Original Message- From: Croci Francesco Luigi (ID SWS) [mailto:fcr...@id.ethz.ch] Sent: Donnerstag, 13. März 2014 14:39 To: solr-user@lucene.apache.org Subject: RE: Problem adding fields when indexing a pdf (add-on) Yes, in my test class I always do server.deleteByQuery(*:*, 5); at first. As you can see I have fullText and signatureField defined. And they are there. The only difference is that they are not manually set. Can it be, that if you use the literal.* parameter you have to use lowercase? Regards Francesco -Original Message- From: Gora Mohanty [mailto:g...@mimirtech.com] Sent: Donnerstag, 13. März 2014 14:35 To: solr-user@lucene.apache.org Subject: Re: Problem adding fields when indexing a pdf (add-on) On 13 March 2014 18:33, Croci Francesco Luigi (ID SWS) fcr...@id.ethz.ch wrote: Ok, I renamed the filed rmDocumentTitle to rmdocumenttitle and now the field is there! Is there some naming rules for the field's names? No uppercase? No. We have used mixed-case names in the past. Are you sure that you reindexed the first time before checking? Regards, Gora
RE: Problem adding fields when indexing a pdf (add-on)
Ok, I renamed the filed rmDocumentTitle to rmdocumenttitle and now the field is there! Is there some naming rules for the field's names? No uppercase? Greetings Francesco -Original Message- From: Croci Francesco Luigi (ID SWS) [mailto:fcr...@id.ethz.ch] Sent: Donnerstag, 13. März 2014 13:57 To: solr-user@lucene.apache.org Subject: Problem adding fields when indexing a pdf (add-on) I tried to define a new field test in the schema (field name=test type=string indexed=true stored=true multiValued=true/) and added req.setParam(literal.test, test title); in the code. The field (test) is there O_O. Can someone explain me the difference? Why rmDocumentTitle is not there while test is? Ciao Francesco
Re: Problem adding fields when indexing a pdf (add-on)
On 13 March 2014 18:33, Croci Francesco Luigi (ID SWS) fcr...@id.ethz.ch wrote: Ok, I renamed the filed rmDocumentTitle to rmdocumenttitle and now the field is there! Is there some naming rules for the field's names? No uppercase? No. We have used mixed-case names in the past. Are you sure that you reindexed the first time before checking? Regards, Gora
RE: Problem adding fields when indexing a pdf (add-on)
Yes, in my test class I always do server.deleteByQuery(*:*, 5); at first. As you can see I have fullText and signatureField defined. And they are there. The only difference is that they are not manually set. Can it be, that if you use the literal.* parameter you have to use lowercase? Regards Francesco -Original Message- From: Gora Mohanty [mailto:g...@mimirtech.com] Sent: Donnerstag, 13. März 2014 14:35 To: solr-user@lucene.apache.org Subject: Re: Problem adding fields when indexing a pdf (add-on) On 13 March 2014 18:33, Croci Francesco Luigi (ID SWS) fcr...@id.ethz.ch wrote: Ok, I renamed the filed rmDocumentTitle to rmdocumenttitle and now the field is there! Is there some naming rules for the field's names? No uppercase? No. We have used mixed-case names in the past. Are you sure that you reindexed the first time before checking? Regards, Gora
RE: Problem adding fields when indexing a pdf (add-on)
Ok. Maybe I found the problem: in the solrconfig.xml I have str name=lowernamestrue/str I set it to false and now rmDocumentTitle is there too... Regards Francesco -Original Message- From: Croci Francesco Luigi (ID SWS) [mailto:fcr...@id.ethz.ch] Sent: Donnerstag, 13. März 2014 14:39 To: solr-user@lucene.apache.org Subject: RE: Problem adding fields when indexing a pdf (add-on) Yes, in my test class I always do server.deleteByQuery(*:*, 5); at first. As you can see I have fullText and signatureField defined. And they are there. The only difference is that they are not manually set. Can it be, that if you use the literal.* parameter you have to use lowercase? Regards Francesco -Original Message- From: Gora Mohanty [mailto:g...@mimirtech.com] Sent: Donnerstag, 13. März 2014 14:35 To: solr-user@lucene.apache.org Subject: Re: Problem adding fields when indexing a pdf (add-on) On 13 March 2014 18:33, Croci Francesco Luigi (ID SWS) fcr...@id.ethz.ch wrote: Ok, I renamed the filed rmDocumentTitle to rmdocumenttitle and now the field is there! Is there some naming rules for the field's names? No uppercase? No. We have used mixed-case names in the past. Are you sure that you reindexed the first time before checking? Regards, Gora