Displaying 15 results from an estimated 15 matches for "post_tags".
Did you mean:
post_tag
2006 Jun 04
2
activerecord table help please
Hi everyone. I''m trying to figure out how to implement site-wide
tagging for my website. I have a rails-based weblog that supports
tagging posts. There''s a has_and_belongs_to_many relationship between
posts and tags. I''d like to now reuse those tags for tagging links as
well. Where I have a posts_tags table with post_id and tag_id fields,
I''d like to
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with
DRb? I''ve given up on searching on Google, I''m getting no results that
are actually helpful.
def self.find_storage_by_contents(query, options = {})
# Get the index that acts_as_ferret created for us
index = self.aaf_index.ferret_index
results = []
default_options = {:limit => 10,
2007 Jun 19
3
another issue with highlighting
Hi,
I''m encountering another highlighting issue.
(about the first one "range search and highlighting", i received no
response. I don''t even know if somebody tried to reproduce and/or if
it''s normal behavior)
about the new issue, an example will be easier for you to reproduce:
I''m filling an index with random data, i try to match for "*1*"
2007 Feb 16
1
Highlight raises Segmentation Fault Error in Ferret 0.10.9 i
Hi Everyone,
I am currently in process of upgrading Ferret 0..9.1 to Ferret 0.10.9
with Ruby 1.8.4 in windows platform. I am trying to use search highlight
feature on index_searcher
subject = index_searcher.highlight("subject:(blah blah)", 0,
:field => :content,
:pre_tag = "<span
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
Hi everybody,
After staring at the a_a_f API for quite sometime now, I decided it''s
time to ask...
Which method should I use to get content from the index without using
highlight? Consider the following controller action:
def preview
if params[:search].blank? # normal case
@text = @myfile. # which method do I use here to get the :text from
the index???
else # if we come from
2007 Jun 28
1
DRb server crashing
I''m having a problem where the DRb server seems to be disappearing
(crashing?) and I don''t know how to track down the cause or work around
the problem.
Unfortunately I haven''t found a way to reproduce the problem, but it
seems to happen fairly often (maybe once a day). Other then that ferret
seems to be working well.
I can''t seem to find any trace of the
2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use
the find_storage_by_contents to highlight the results, I am getting the
above error. Please help
thanks
--
Posted via http://www.ruby-forum.com/.
2007 Jun 07
3
:store => :yes doesn''t work in some cases
I''m not really sure if this is a bug, but it makes my search results
look a bit strange. I have an acts_as_ferret declaration that looks
like:
acts_as_ferret :store_class_name => true, :remote => true, :fields =>
{
:ferret_name => { :store => :yes, :boost => 2 },
:ferret_content => { :store => :yes } }
I store both fields so that I
2006 Jun 13
11
markaby
What''s the current status of Markaby? I''ve played with it a bit and
love it and am considering using it for a large project I''m starting.
If you''ve used it, I''d love to hear your comments!
Jamie
2007 Aug 08
0
Escaping special characters before highlighting
Hi all.
I need to perform some operation on the results of a ferret search
before it gets highlighted. Is there a way to do this?
This is my code which calls the highlighting inside a Rails View:
<%= result.ferret_highlight(@query, :field => :ferret_text, :pre_tag =>
''<span class="keyword">'', :post_tag => ''</span>'') %>
--
2007 Jun 17
1
highlighting and range queries
Hi there,
Is highlighting for range queries supposed to work ?
It doesn''t work here.
here is an non-working example: (highlighting works when q="test:2007*")
require ''ferret''
include Ferret
index = Index::Index.new()
#index.field_infos.add_field(:test, :store => :yes, :index => :untokenized)
i=1
for a in [ "20070505", "20071230",
2007 Feb 16
0
Highlight raises Segmentation Fault Error in Ferret 0.10.9 in Windows
Hi Everyone,
I am currently in process of upgrading Ferret 0..9.1 to Ferret 0.10.9 with Ruby 1.8.4 in windows platform. I am trying to use search highlight feature on index_searcher
subject = index_searcher.highlight("subject:(blah blah)", 0,
:field => :content,
:pre_tag = "<span
2007 Jan 25
0
multibyte character corrupt in highlight method
When I apply highlight() method to the search result,
multibyte characters are corrupted.
The post_tag is located in the middle of last character,
so the last character corrupts.
Here is my code.
query = "SOME_MULTIBYTE_CHARS"
searcher.search_each(query) do |doc_id, score|
puts searcher.highlight(query, doc_id, :field => :content)
end
And this is the result.
... bla, bla, bla,
2006 Dec 01
1
Effective search when knowing ID
Hi list,
I''m new to ferret and I wonder what is the best way to search if I
know one fields id and want to search on its content.
I have experimented with FilteredQuery but I don''t know if this is
the best way.
Eg.
index = Index::Index.new(:path => ''/tmp/all'')
@dbh = Database.instance.connect
result = @dbh.exec("SELECT pk_fulltext_id, fulltext_text
2008 Sep 19
1
Help with best approach(fairly easy question)
...params[:user]
@posts = Posts.find(:all, :conditions => ["user_id = ?,
params[:user_id]])
elsif params[:tag]
.
.
.
end
2) Should I create different controllers with only an index action on
it (Create and other actions stay on the posts_controller):
post_categories controller? post_tags controller? user_posts
controller?
So, which approach should I use?
Thanks again,
Elioncho
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to r...