Displaying 11 results from an estimated 11 matches for "wildcardquery".
2007 Jan 17
7
removing special/syntax characters
Is there any somewhat standard way to remove or otherwise handle
special or syntax characters from a user''s search, such as a colon?
I was thinking maybe there was something akin to
Ferret::Analysis::FULL_ENGLISH_STOP_WORDS, like
Ferret::Analysis::FERRET_SYNTAX_CHARS, but no such luck.
How are other folks dealing with filtering user input?
John
2006 Jan 20
4
Questions about Searching
Hi,
I have some questions about searching with Ferret. I have a user
index with first_name, last_name and full_name (which is just first
plus last with a space).
Here are a couple of questions:
1) If I store the fields tokenized, it appears as though queries are
case-insensitive. However, for untokenized, the query is
case-sensitive. How can I make the untokenized searches
case-insensitive?
2007 Nov 16
1
problem with searching plurals (with apostrophe)
...lts.
atleast i shud have got the result for search with "benhank''s"
which is actually what is entered in :name field
how can i get this done. pls help
i have been trying to understand to use the analysers and tokenisers
but couldn''t get through.also looking at wildcardquery and fuzzy things
thanks
jags
____________________________________________________________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
--------------...
2006 Dec 01
1
Effective search when knowing ID
...xec("SELECT pk_fulltext_id, fulltext_text FROM
tbl_fulltext")
result.each do |row|
#Inserting the PK id and text from DB
index << {:pk_fulltext_id => row[''pk_fulltext_id''], :content => row
[''fulltext_text'']}
end
content_query = Search::WildcardQuery.new(:content, "Text*")
# I know the ID of the text to search in so I want to do it efficient
id_filter = Search::QueryFilter.new(Search::TermQuery.new
(''pk_fulltext_id'', ''1257667''))
query = Search::FilteredQuery.new(content_query, id_filter)
index.s...
2006 Dec 07
1
Range Query Term parsing bug in 0.10.6 win32 ?
Hi,
I think I''ve found a Range Query Term parsing bug ... the following term
should return names >= ''A'', but instead generates a parsing error
Term: name:[A>
Message: Nil bounds for range. A range must include either lower bound
or an upper bound
However, the slightly larger term, name:[AA> works just fine.
Any pointers please?
Kind Regards
Neville
2006 May 23
1
Search parts of words?
Hello,
how is posibble to search only parts of words for exapmple if i have in
index "Lazy fog was jumping over microstadio." I want this one will
return for following search: "micro"
--
Posted via http://www.ruby-forum.com/.
2007 Nov 05
6
Strange wildcard problem
Hi,
Apologies for reposting this for those who read this via ruby-forum,
but it didn''t make it to the list before, and the list seems more
active...
I''m using ferret (via acts_as_ferret) in a somewhat unorthodox
manner and am having a strange wildcard problem. Before anyone wonders
why we''re doing things this way, the answer is basically that it lets
us
2007 Jan 24
7
Ferret problems with Rails 1.2.1
Hi, I''ve just updated rails from 1.1.6 to 1.2.1 and I''m getting the
following errors whenever I load a page that uses a class that uses
ferret. I have ferret 0.10.13 and acts_as_ferret. They were working
fine before the upgrade.
#<NameError: cannot remove Object::WildcardQuery>
["/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:423:in
`remove_const''",
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:423:in
`remove_constant''",
"/usr/local/lib/ruby...
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
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
2006 Aug 28
12
Help with Multiple Readers, 1 Writer scenario
Hi,
I''m building a web server application using Ferret [thanks so much
Dave], Mongrel and Camping which works fine servicing one request at a
time, but serialises searches if more than one request arrives, so I''d
like some advice please about the best way to use multiple readers and
one writer.
Some background ... query requests which in my case are always read
only, arrive via