similar to: Problems with stop word analysis and queries

Displaying 20 results from an estimated 10000 matches similar to: "Problems with stop word analysis and queries"

2006 Nov 01
8
aaf and stop words; query parser
I''ve been trying to implement acts_as_ferret in my latest project and ran into a snag. If I do a search for ''auditor state'' then the search works perfectly. If I include a stop word, as in ''auditor of state'', then I get no results. I''d prefer not to set stop words to nil and index everything. The solution, that I have yet to attempt, is to use
2006 Oct 17
9
Error : End-of-File Error occured at <except.c>
Everything was working fine till last night. This morning I have many errors. I am using acts_as_ferret. Last updated around a month ago on linux. There are two different type of exceptions. I have over 12 exception emails but these are the two distince types. First exception: A EOFError occurred in home#event_info: End-of-File Error occured at <except.c>:79 in xraise Error occured in
2006 Nov 17
4
acts_as_ferret and searching word docs
I was wondering if it is possible to search word documents using ferret. The actual text in a word document isn''t in a binary format - only the formatting. Surely it would be possible to parse that? -- Posted via http://www.ruby-forum.com/.
2006 Oct 14
9
How can I do my own search limits?
I''m trying to add a way to query across associations for a model in acts_as_ferret. Say I have a model A and it has a relationship with model B. Like say a Book has many pages. I want to search across the pages of the Book and produce a list of unique books who''s pages match the terms. So if I have a page that hits then I will add that book to my list of results. Right
2007 Mar 12
5
index.rb:384 [BUG]
Hi folks, I''ve working and playing with acts_as_ferret and follow this fantastic tutorial: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial When I try to implement the field storage tip, it crash. So, I try to make it via script/console: 1. I have a simple model called Articles: class Article < ActiveRecord::Base acts_as_ferret :fields =>
2006 Jun 25
1
acts_as_ferret with existing data (Building an index?)
Hi, I''m trying to get the acts_as_ferret plugin to work with my rails application, but it barfs with this error: No such file or directory - ./index/development/Book/segments I have existing data in my database, but it was added prior to me using the ferret plugin. How do I get it to index that data, or when does it index that data? Charlie -- Posted via
2006 Oct 02
3
Adding dependant objects to an Index?
I have design question and I''m wondering what''s the best way to solve it. I''m trying to index HTML content where I have a single model object call it Article that is an acts_as_ferret model, and an article consists of many HTML files. I would like to index all of the content of the article with ferret and search across it. However, since the article''s
2006 Oct 05
2
Submitting patches for acts_as_ferret
Hi, I have a small path I''d like to submit to acts_as_ferret how do I do that? Charlie -- Posted via http://www.ruby-forum.com/.
2006 Oct 14
2
Attaching files in Tracs to tickets is broken!
Hi, I tried opening a new ticket with a patch I wanted to submit. But when I tried to attach files to the ticket I keep getting a ticket not found error. I kept trying to get it to work, but I accidentally opened 4 new tickets. Sorry. Charlie -- Posted via http://www.ruby-forum.com/.
2007 Jul 31
5
Group by clause
Hi Does acts_as_ferret support a :group clause? For e.g any rails options like :select or :group etc? or is it that it supports only few of such options?Like it supports :include Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070731/a74fb666/attachment.html
2006 Oct 24
2
Problem with stop words
I am seeing trouble with searches for ''you'' not returning anything. It appears that ''you'' is a stop word to the standard analyzer: require ''rubygems'' require ''ferret'' index = Ferret::I.new(:or_default => false) index << ''you'' puts index.search(''you'') returns
2008 Jan 02
4
utility of default_field
The documentation* states that when using a single index for multiple models, the default_field list should be set to the same thing for all models. However, in my application, all my models have very different fields and this is not possible. I still want the results returned sorted by term frequency across all indexed content in each model. What is the purpose of default_field? Under
2006 Sep 03
9
using highlight from aaf
Hi, I''m trying to use highlight ferret method with trunk aaf and 0.10.1 ferret. In my search display I use: Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id, :content) * searcher is a protected method; how can I access to the searcher from aaf ? * is the doc id in aaf the same as my model id ? * is the first param, query, the string query or the query object ?
2006 Nov 17
3
acts_as_ferret + :tag_list, how to use it?
hello, i am currently using acts_as_ferret in one of my applications and now would like to also incorproate tags. i came across somesones blog that had this: ////// Having Ferret index method results (like :tag_list) worked out-of-the-box for me with acts_as_ferret. I specified attributes (table columns) as strings and methods as symbols, like so: acts_as_ferret :fields => [?title?,
2006 Jul 07
4
How to add Asia token analyzer to ferret simply?
Hi,David Can you give me an example of how to add analyzer to ferret to Asian languages? My web application will have to support multi language search,which means,for example,both Chinese and English will be searched through the form. Currently,I have decided to use the simple token principles,which means that every Chinese character will be a token,although this is not so well in some
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all, I cannot make aaf (rev. 220) use my custom analyzer, despite following the indications @ http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage To pinpoint the problem, I created a model + a simple analyzer with 2 stop words : "fax" and "gsm". test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a stop word. => I get a
2006 Oct 09
2
hello, acts_as_ferret questions, any help greatly appreciate
hi, ive been reading up on ferret, acts_as_ferret, and other search plugins for rails. after reading about ferret, i found out about the acts_as_ferrt plugin. my first question about acts_as_ferret: 1. from reading about ferret, do i still need to manually save the IDX and add a IDX column field to my model table for acts_as_ferret to work? they say that acts_as_ferret handles everything,
2006 Sep 26
3
concurrency / #search_each problem / segfault
Hello everyone, I was stress-testing my application (running on Rails via FastCGI) by letting two concurrent users (not human .. an app called ''siege'') a) save an Article and b) search for all Articles. I am searching via Article.ferret_index.search_each( ..) do |doc_id,score| doc = index[doc_id] .. end and writing via Article.ferret_index <<
2006 Jul 05
3
Is there any schema of full-text search that support utf-8?
Is there any schema of full-text search that support utf-8 especially for Asia language such as Chinese,Japanese,etc. Ferret/acts_as_ferret can not work when these language key words are searched,and also, it is difficult to implement pagination-which need both the count of search results and offset. Very grateful! -- Posted via http://www.ruby-forum.com/.
2006 Sep 20
3
Range searches some times they work, some times not...
Hi i''m using ferret to enable geographical postcode. I take a postcode and distance in miles from the user, strip off the outcode and then retrieve the associated x y coordinates in metres from the db. Then i get two temp x''s and y''s and search for all results that are within the box, see code below. Problems start to occur when i search on big distances so for