On Sat, Sep 11, 2004 at 11:59:15AM -0700, Peter B. Ensch wrote:
> I'm building a web form which will build a metatag-only
> search string passed to swish-e.
>
> Foreach metatag name, I want to offer a pulldown containing
> a list of all the values for that metatag in the indexed files.
>
> I can get a list of these values by parsing the output of:
> swish-e -T index_words_meta
>
> This is my problem. If I have files with these metatags:
> name='nonsense' content='foo bar'
> name='nonsense' content='bing bang'
> name='nonsense' content='fe fi'
>
> then the values I retrieve from the index using the above command are:
> nonsense = ('foo', 'bar', 'bing', 'bang', 'fe', 'fi')
>
> what I would like is:
> nonsense = ('foo bar', 'bing bang', 'fe fi')
Ok, so how about using -T properties when indexing (or -T index_files
on an existing index) and use PropertyNames nonsense in your config?
$ swish-e -c c -i 1.html -T properties | grep nonsense
nonsense:11 ( 7) S: "foo bar"
> The actual search doesn't mind, so I'm successfully able to do:
> %> swish-e -w "nonsense='fe fi'"
I might reverse the order of the quotes above.
--
Bill Moseley
moseley@hank.org
Unsubscribe from or help with the swish-e list:
http://swish-e.org/Discussion/
Help with Swish-e:
http://swish-e.org/current/docs
swish-e@sunsite.berkeley.edu
Received on Sun Sep 12 06:16:32 2004