On Fri, 10 Feb 2006 16:15:57 +0100, Adam Dickmeiss wrote
> Daine Mamacos wrote:
> > On Fri, 10 Feb 2006 09:51:57 -0500, Sebastian
Hammer wrote
> >
> >>Daine Mamacos wrote:
> >>
> >>
> >>>Hey Adam,
> >>>Thanks for the response, I'll give it a
try. I love zebra, don't get me
wrong.
> >>> I was just testing it against lucene, and
while lucene is much slower
on the
> >>>search, (by a long shot) it's record
retrieval is quite snappy. Anyhow,
thanks
> >>>a lot. I'll give it a shot.
> >>>
> >>
> >>Please let us know how you get on. There's
nothing like a little
> >>Lucene comparison to get the blood flowing
around our lunch table
> >>(we use sharp knives in Denmark).
> >
> >
> > Hehehe
> > I'm pretty determined to used zebra(there is a
little index war at work)...
> > I still can't seem to get zebra to return more
than one record at a time tho,
> > I have set all the options I can think of to
achieve this:
> >
> > ZOOM_resultset_option_set(results,
"presentChunk", "1000");
> > ZOOM_resultset_option_set(results,
"start", "1");
> > ZOOM_resultset_option_set(results,
"count", "1000");
> >
> > it seems it still have to itterate through every
result, and make a request
> > for that individual result.
> Use these calls for the connection object. Before
searching. I know
> that's ackward..
>
> / Adam
>
> >
> > Thanks
> > Daine Mamacos.
> >
> >
> > --
> > random signature
> >
> >
So let me ge this right, something like this?
Because the docco claims those are resultset object options,
as opposed to
connection object options
ZOOM_connection_option_set(yazLink,
"presentChunk", "10");
ZOOM_connection_option_set(yazLink, "start",
"0");
ZOOM_connection_option_set(yazLink, "count",
"10");
//tell the connection to actually connect
ZOOM_connection_connect(yazLink,
"10.10.48.110", 9999);
//make a query "object" I think
ZOOM_query query = ZOOM_query_create();
int someVal = ZOOM_query_prefix(query, " attrset
Bib-1 attr 2=5 attr 1=5 0");
//get our results
ZOOM_resultset results = ZOOM_connection_search(yazLink,
query);
//ZOOM_resultset_option_set(results,
"presentChunk", "10");
//ZOOM_resultset_option_set(results, "start",
"0");
//ZOOM_resultset_option_set(results, "count",
"10");
ZOOM_resultset_option_set(results,
"preferredRecordSyntax", "xml");
int hits = ZOOM_resultset_size(results);
--
random signature
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|