Skip to main content.
home | support | download

Back to List Archive

Re: free text searching

From: mpeters <mpeters(at)>
Date: Tue Aug 24 2004 - 19:15:33 GMT
Eric Lease Morgan wrote:
> If an XML element has been indexed as a field using swish, then is it 
> possible to retrieve a record with that field using a free text search?

Yes, you just have to tell swish-e to took for it using the 
MetaNames line in you conf file.

> Suppose I have many XML files with the following structure:
>    <record>
>      <title>oranges</title>
>      <description>a tangy fruit</description>
>    </record>
> Furthermore, suppose I instruct swish to index the title element as a 
> field.
> Now, is there a way to search a swish index for the word oranges 
> *without* telling the search engine to look in the title field? In 
> other words, I want to do something like this and retrieve my record:
>    swish-e -w oranges

By default this will search for it anywhere: title, description, 

> Is this possible? Is there something I can do to make this possible, or 
> must I do this:
>    swish-e -w title=oranges

This will just look in the title. The example above will still look 
at the title.

Michael Peters
Plus Three, LP
Received on Tue Aug 24 12:16:19 2004