Bobo Wieland wrote:> I tried to run the simpleindex.php5 and simplesearch.php5 scripts
> aplied to my data and there was no problem there. But when I tried to
> search it didn't work as planned. Now, I guess that I was misstaken
> but I thought that xapian would be fast even when making "bogus"
> searches. When I search for "A" xapian takes seconds to retrieve
a
> result.
>
> What I want to create is a realtime webserach that retrives the
> results as the user types. Maybe xapian isn't my best choice or the
> simpleindex/simplesearch isn't the correct way to go?
If I understand you correctly, you're trying to do some kind of
autocomplete - i.e. when the user types 'A' you want to show them all
the possible search terms beginning with 'A', then when they have typed
'Al' you want all the terms beginning with 'Al'... etc.
You might want to look at the Yahoo Widgets to help with this. As far as
getting the terms to display, it may well be inefficient to use Xapian
in this case - perhaps you should think about using a different source,
i.e. a manually created list, or server logs.
In any case, if you're having particular problems with Xapian we'll need
more information than 'it didn't work as planned' to help you.
Cheers
Charlie>
> Btw; can you set the docid manualy? Or how do I get it when i add a
> posting to the db? It would be nice to use the primary key from my
> mysql-db as the docid so I know which document to update, when a row
> in mysql changes, in xapian without having to add extra data to my
> mysql db.
>
>
>
>
> mvh
>
> Bobo Wieland - Kodstationen AB
> -------------------------------------------------
> Kodstationen AB
> J?rnv?gsstationen
> 262 52 ?ngelholm
> -------------------------------------------------
> Tel: 0735 - 880 100
> E-post: bobo at kodlabbet.se
> -------------------------------------------------
> Detta e-mail skickades via SilverCRM
> http://www.silvercrm.se
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>