Displaying 13 results from an estimated 13 matches for "waspfactory".
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted
before but with a larger amount of background info in the hope that i
can get a decent grip on ferret before it wriggles away..
Firstly, what does installing the acts_as_ferret plugin actually do? I
install it and add it to my model and then the index is automatically
generated and a few methods are added to it and
2006 Jul 22
3
How do you find out what action rendered a page
Hi I have this list page that has some rjs templates updating parts of
it including a table of results. i''m trying to put pagination on the
table. thing is lots of different actions update the table and they have
their own paginators.
anyway i have this code at the bottom which worked for another page
<%=
pagination_links_each(@offer_pages,:window_size =>4) do |n|
2006 Jul 19
4
sorting and pagination
Hello All,
Okay i think I''m finally getting all of what i want out of ferret
working, thanks mostly to reading this forum and also getting ALOT of
questions answered, thanks alot everyone. Anyway my last ferret task is
too get the results sorted by a field called date_registered and have
this working with pagination.
here is what i''m doing at the moment:
2006 Aug 20
1
sorting with booleans
Hi i have a column in my ferret model called sponsored. It is a boolean
and i want to order the results by sponsored and date registered. At the
moment it is not managing to sort the booleans.
I tried declaring this in my model but it seems to have had no effect.
def false.<=>(o) o ? -1 : 0 end
def true.<=>(o) !o ? 1 : 0 end
I''m using the acts_as_ferret plugin.
below
2006 Jul 06
1
querying returned results
Hi I''m using the acts_as_ferret to index one table in my database. The
table contains formation about listed items and each of these items
belongs to a section and a category. On the results page I want to have
two drop down boxes whose contents are populated depeneding on the
returned results. So for example the section drop down should only show
sections that exist in the result set,
2006 Aug 28
1
stop words and /''s
Hi new version of ferret and acts as ferret have sorted out the scary
glibc *** linked list pointer errors, thank god! New version are good
but some searches are still not working. It is mostly the stop words
ones. For example the "For Sale/Free/Swap" fails but works when "for" is
stripped out. I have read all the recent posts regarding this issue and
failed to get it to
2006 Oct 16
10
Sorting by score
Hi I think this is a very easy question but here goes:
I want to sort my results by a boolean field and then by score, I
thought this would be a default configuration but apparently not.
sort_fields = []
sort_fields << Ferret::Search::SortField.new(:sponsored, :reverse =>
:true)
that is my current code, how do iu alter it so that the results are then
sorted by highest score first?
2006 Aug 13
0
application_helpers, gems and paypal
Hi I''m trying to use the paypal ipn gem in my app but rails can''t seem
to find it. I installed using gems and it is listed as being installed.
I followed the documenation and put include Paypal::Helpers in my
application_helpers.rb but as soonas i try to use <%= paypal_form_tag
%> i get
undefined local variable or method `paypal_form_tag'' for
2006 Aug 28
1
How should this be done with ferret 0.10.1
Hi i like the new version of ferret, has solved a few of my problems but
i''m unsure of how to implement the following code in the new version of
ferret?
if section
if !section.empty?
qp = Ferret::QueryParser.new("section")
query = qp.parse("\"#{section}\"")
bq.add_query(query, Ferret::Search::BooleanClause::Occur::MUST)
filter_on =true
end
2006 Jul 07
1
querying the SearchResults instance
Hi how do you search against the results returned by find_by_contents
using ferret?
i.e. how do you "search within these results"?
This is an acts_as_ferret question again...
thanks in advance..
cheers
caspar
--
Posted via http://www.ruby-forum.com/.
2006 Nov 10
2
backgroundrb and ferret
Hi I''m using ferret happily on a site with 260ish documents in the
index. Problem is that the site is still in development and I have to
rebuild the index fairly regularly as new fields are added to it, like
today when i added price. I have been using a rebuild index action in
the admin section but this is clearly the wrong way to do it as it
completly kills the site during the rebuild.
2006 Aug 07
0
image uploads not working with lighttpd
Hi I thought it was time to test my app out on a real server. So i have
installed lighttpd following the instruction on the rails wiki.
everything seems to work fine except the file upload page. It doesn''t
throw any errors, it just doesn''t seem to write the image to disk.
Nothing is printed to the lighttpd error log when the file upload fails.
I thought it might be my code
2006 Sep 07
7
counting occurences of words in the result set
Hello, I need to be able to count the occurences of certain terms in the
reults.
Currently my setup is Ferret 0.10.1 aaf bleeding edge.
results = VoObject.find_by_contents(query,:offset=>page, :limit=>
20,:sort => sort_fields)
I use results.total_hits for pagination. This all works really nicely.
However i need to be able to know how many occurences of certain
predefined terms occur