Displaying 2 results from an estimated 2 matches for "document_pag".
Did you mean:
document_pages
2005 Nov 26
3
Get number of found documents
...ts I need to create on page link something like
"Page #100". Rather usual situation.
But to create this links I need to know how many documents Ferret found in
index.
For now I am doing it with following code
index = FerretConfig::INDEX
index_size = index.search(query).size
@document_pages = Paginator.new self, index_size, PAGE_SIZE, page_num
But I am not sure that statement index.search(query).size will be effective
here. Because it returns an array of found documents. What if such documents
will be 100000?? I don''t want to select all this documents, just to know how
man...
2005 Dec 02
4
How to get the count of matching documents
I''m trying to generate a rails pagination helper for some ferret
search results, and I need to know how many total matches there are to
my search query. I don''t see an obvious way of finding this. Any
help would be appreciated.
Thanks,
Carl Youngblood