Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Change the indexed 'title'

From: <josh(at)not-real.relativelysane.com>
Date: Thu Oct 25 2007 - 11:32:06 GMT
>-----Original Message-----
>From: users-bounces@lists.swish-e.org
>[mailto:users-bounces@lists.swish-e.org] On Behalf Of Peter Karman
>Sent: Wednesday, October 24, 2007 4:02 PM
>To: Swish-e Users Discussion List
>Subject: Re: [swish-e] Change the indexed 'title'
>
>
>
>On 10/24/2007 02:46 PM, josh@relativelysane.com wrote:
>
>> 
>> I see what you are saying; not sure what I am doing wrong though. I tried
>to
>> simulated exactly what you had there and do not return the results as you
>> are saying I should.. the only 'result' i am returning is the
>> swishtitle.....
>> 
>> Do i have to index it in a special way for it to populate the 'strong'
>> PropertyName? I don't understand how it should correspond that property
>name
>> to the html tag...
>> 
>
>show your work. your config file, your indexing output. reduce your test
>case
>to the smallest possible reproducable example.
>
>PropertyNames are a way of telling the indexer "if you find a tagset called
>'foo', save all the text inside the tagset under an index field called
>'foo'".
>
>MetaNames are a way of telling the indexer "if you find a tagset called
>'foo',
>mark all the words inside that tagset as appearing in the 'foo' context."
>
>-- 
>Peter Karman  .  peter(at)not-real.peknet.com  .  http://peknet.com/
>


I literally duplicated what you wrote; to test and play around with (as you said, with a small sample set). I have 3 directories (docsthatarenormal, docswith-ahref, docswith-strong); in each is one file - which are identical to what you used in your example.

I created a conf file that has the following lines:
   IndexDir .
   ExtractPath flavor regex !^([^/]+)/.*$!$1!
   PropertyNames strong a flavor

I ran a standard index (swish-e -c index.cfg)

then I ran your commandline search string, as you typed it, I get an 'err: no results'. If I remove the 'AND flavor=strong' search string it does return some results listed below:

# SWISH format: 2.4.5
# Search words: title
# Removed stopwords:
# Number of hits: 5
# Search time: 0.000 seconds
# Run time: 0.009 seconds
"" "read title - this is the title i want" "."
"" "read title" "."
"" "read title" "."
"" "index.swish-e.prop" "."
"" "index.swish-e" "."
.

thanks!

josh
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Oct 25 07:32:07 2007