Re: Replace document title with filename if it's empty

2013-10-29 Thread Bayu Widyasanyata
Hi Erick, Thanks for the info. Regards, On Wed, Oct 30, 2013 at 8:01 AM, Erick Erickson wrote: > You can write a custom bit of update code that lives on the Solr server > that > would essentially copy the filename field to title if title wasn't present. > > You could write a SolrJ program that

Re: Replace document title with filename if it's empty

2013-10-29 Thread Erick Erickson
You can write a custom bit of update code that lives on the Solr server that would essentially copy the filename field to title if title wasn't present. You could write a SolrJ program that does the Tika processing and add it before you sent the doc, see: http://searchhub.org/2012/02/14/indexing-w

Replace document title with filename if it's empty

2013-10-28 Thread Bayu Widyasanyata
Hi, I just found that some of PDFs files crawled has no (empty) 'title' metadata. How to define or fetch the filename, and use it (filename) replacing empty 'title' field? I didn't found "filename" field on schema.xml, and don't know how to make conditional for above conditions (if title is empty