Skip to main content.
home | support | download

Back to List Archive

Re: internal number question

From: Peter Karman <karman(at)not-real.cray.com>
Date: Tue Aug 31 2004 - 15:15:05 GMT
You don't do it in the perl module; you do it in the config file when 
indexing. It's internal to the index.

Read the docs in SWISH-CONFIG and look at the MetaName and Property options.

Jason Camp wrote on 08/31/2004 10:04 AM:
> Would you happen to have a quick example of how to do this with the SWISH::API
> perl module? I don't see any mention of setting other properties to be
> searchable in the docs or example cgis? Thanks!
> 
> Jason
> 
> Quoting Peter Karman <karman@cray.com>:
> 
> 
>>try setting swishdocpath as a metaname. By default it is just a
>>property. See the docs for more on those two configs.
>>
>>Jason Camp wrote on 8/30/04 8:36 PM:
>>
>>
>>>Ah great, this fixed the problem, thanks! I think my script isn't totally
>>>working the way it should as far as how it indexes the file, but this
>>>incremental indexing gets around it.
>>>
>>>One more question, is there a way to get the results of a particular search
>>>result using the perl API by passing it the internal file number, or to
>>
>>search
>>
>>>by the url? I understand how to search using keywords but I didn't know if
>>
>>it
>>
>>>supported searching other attributes. Thanks!
>>>
>>>Jason
>>>
>>>Quoting Bill Moseley <moseley@hank.org>:
>>>
>>>
>>>
>>>>On Mon, Aug 30, 2004 at 01:14:11PM -0700, Jason Camp wrote:
>>>>
>>>>
>>>>>Ok cool, thanks for your help on this! One more question - I have a
>>>>
>>>>modified
>>>>
>>>>
>>>>>spider program that will index documents, and each document it passes to
>>>>
>>>>the
>>>>
>>>>
>>>>>swish-e program via stdin. It looks like for each document, it's
>>>>
>>>>overwriting
>>>>
>>>>
>>>>>the index each time. Does this make sense? Is there any way to tell it to
>>>>
>>>>add a
>>>>
>>>>
>>>>>page to the index instead of overwriting it? Or am I missing something?
>>>>
>>>>Thanks
>>>>
>>>>
>>>>>a lot for your help!
>>>>
>>>>Sounds like you are missing something.  Swish-e mostly doesn't do
>>>>incremental indexing.  There's an option to build swish-e with a
>>>>different backend data store (btree) where you can add files to an
>>>>existing index.  Old files are not removed, so the index will
>>>>continue to grow (IIRC).  ./configure --help and look for the
>>>>enable-incremental option.
>>>>
>>>>--
>>>>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
>>>>
>>>>
>>
>>--
>>Peter Karman  651-605-9009  karman@cray.com
>>

-- 
Peter Karman - 651-605-9009 - karman@cray.com
Received on Tue Aug 31 08:16:13 2004