biomimetics writes

hi

I wanted to get some information from a csv file into recoll and have the column name (in this case MPCode01) be set as a new field. Reading

I wrote a program to convert each csv to html similar to this

#!html

<html >
        <head >
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
                <meta name="date" content="2013-08-01 00:00:00" / >
                <meta name="MPCode01" content="IV" / >
        </head >
        <body >

This is my Produkt
Company XY
Saves Lifes

        <body >
</html >

then I had recoll rebuild the index on the new directory containing only the html files. using "delve -r 1" did not give me MPCode01 as a new field, neither did I have the possibility to add this column to the recoll-gui table. So where may I have gone wrong?

best

regards

robin

medoc writes

Hi,

You also need to set up a custom fields file.

In your case I think that putting something like the following inside $HOME/.recoll/fields should be enough:

#!shell

[prefixes]
MPCode01 = XYMP

If this does not work, please get in touch: jf at dockes.org

biomimetics writes

just for completeness …

cat ~/.recoll/fields

#!python

[stored]
MPCode01 =
MPCode02 =
MPCode03 =
MPCode04 =

[prefixes]
MPCode01 = XYMPCODE01
MPCode02 = XYMPCODE02
MPCode03 = XYMPCODE03
MPCode04 = XYMPCODE04

solved my problem! many thanks

robin

biomimetics writes

all explained in the post