Displaying 20 results from an estimated 44 matches for "searchresult".
Did you mean:
searchresults
2007 Apr 30
1
Can''t search fields with space
...t.
But I can''t get it to return any result whether I use
:city => {:store => :no, :index => :untokenized},
or
:city => {:store => :no} in my User model''s acts_as_ferret option
>>> User.find_by_contents("city:(cal poly)")
=> #<ActsAsFerret::SearchResults:0x4e62608 @total_hits=0, @results=[]>
>> User.find_by_contents("city:(''cal poly'')")
=> #<ActsAsFerret::SearchResults:0x4e5aae8 @total_hits=0, @results=[]>
>> User.find_by_contents("city:(''cal\ poly'')")
=> #<ActsA...
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
...{render :action => ''search''}
format.xml
end
end
in my model i gave
acts_as_solr :fields => [ :name ]
when i tried with search
puts "------------------------------#{@emp}" shows me the following
------------------------------#<ActsAsSolr::SearchResults:
0x9a0f1dc>
any one say me how to retrive value to view page
EMP id<%= @emp.id %><br>
EMP Name<%= @emp.name %><br>
in view error occurs as
"undefined method `id'' for nil:NilClass"
thanks,
-pab
--
You received this message because you are subscr...
2007 Jan 13
5
Problems using acts_as_ferret
...rying to use acts_as_ferret and have run into a brick wall.
My model is Page
My controller is Pages_controller.
When in console, I can search for contents, and find results. For
example, when I search for "spam" it "finds" 7 results.
=> #<FerretMixin::Acts::ARFerret::SearchResults:0x2693934
@total_hits=7, @results=[]>
you can do a "p.total_hits" and get 7.. but the results are empty. If
i iterate over the p in this i get no entries.
How do I get to the entries that it found for the search? Am I doing
something wrong?
Thanks,
William
2006 Apr 19
4
RJS replace_html auto-closing tags
...ng RJS template to spit out a div containing a
list of projects:
page.replace_html ''results'', ''<div>''
@projects.each do |p|
page.insert_html :bottom, ''results'', p.name + "<br/>"
end
page.insert_html :bottom, ''searchresults'', ''</div>''
page.show ''results''
However, it seems that my first like to insert the <div> tag
automatically sticks a </div> closing tag in as well. Is there any
way to avoid this, as I''d like the content from the loop to be...
2007 May 29
1
is "IN" a special word?
...39;'t return me any result.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
:user => {:store => :no },
:len => {:store => :yes}
}
end
ruby script/console
>> User.find_by_contents(''Cal'')
=> #<ActsAsFerret::SearchResults:0xb762ab58 @total_hits=1,
@results=[#<User:0xb762b8f0 @ferret_score=0.244397431612015,
@ferret_rank=1, @attributes={"user"=>"Cal Poly", "id"=>"1",
"len"=>nil}>]>
>> u = User.new
=> #<User:0xb76293fc @new_record=true, @...
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 Jan 31
1
retrieving attributes of searchresults
i use the perl interface of Search::Xapian to index documents, now i got
metadata i store with the index like title, date, author, .. and i wonder how to
retrieve them from the index again without pulling them from the database.
i am pretty sure this is a stupid question and that the answer is obvious i dont
seem to be able to find it.
regards m
2007 May 02
6
Rewarding exact matches
Is there a way I can get ferret to give the highest ranking to an
exact term match?
The problem I have right now is that I am searching both title and
body fields, so even if I boost the title field, if the body has more
instances of the query, then it gets pushed up in rank.
I would like for ferret to put exact matches (of the title field) at
the very top of the pile, so if I do a
2011 Aug 25
1
R hangs after htmlTreeParse
Dear colleagues,
I'm trying to parse the html content from this webpage:
http://timesofindia.indiatimes.com/searchresult.cms?sortorder=score&searchtype=2&maxrow=10&startdate=2001-01-01&enddate=2011-08-25&article=2&pagenumber=1&isphrase=no&query=IIM&searchfield=§ion=&kdaterange=30&date1mm=01&date1dd=01&date1yyyy=2001&date2mm=08&date2dd=25&date2yyy...
2006 Oct 21
2
find_by_content result set
Hi Guys
I''m experiencing with AAF and Ferret with the intention of deploying
into the site that I am working on now.
So I setup AAF to index 3 fields that I have in this model and i tried
doing a find_by_contents and it returned the
#<FerretMixin::Acts::ARFerret::SearchResults:0xb74b5bec
@total_hits=1157, @results=[#<Payprofile:0xb74cc39c
@attributes={"add......
but it seems that there is no way to access the result set... I read
somewhere that it''s not implement yet.. So any knows when the release
will be. and until there is there any workaround f...
2009 Mar 27
0
[LLVMdev] GSoC 2009 application
Hello, Kshitiz
> I was interested in taking up the project ideas on adding profile driven
> optimization passes and improving alias analysis as this would give me a
> chance to carry forward and improve my current work and also contribute
> significantly in terms of tangibles.
This sounds like a great idea. LLVM definitely lacks some
profile-driven optimizations.
--
With best
2009 Jun 01
3
External SATA enclosures: SiI3124 and CentOS 5?
...ering an external SATA drive enclosure with a controller
card based on the Sil3124.
http://www.ipcdirect.net/servlet/Detail?no=152
I'm a bit concerned about long-term support, namely that the company's driver
page only lists drivers through RedHat 4.
http://www.siliconimage.com/support/searchresults.aspx?pid=27&cat=3
Does anybody else have experience with this controller? How has it been for
you?
If you have experience with an external SATA enclosure(s), what did you use
and how did it work for you?
Thanks,
Ben
--
This message has been scanned for viruses and
dangerous content...
2009 Apr 03
2
[LLVMdev] GSoC 2009 application
...g the copy or dicard model[1].
June 21 - July 7 - Loop peeling and strip mining passes.
July 7 - August 10 -- Maybes + Complete testing and documentation.
References:
[1]Copy or Discard execution model for speculative parallelization on
multicoresChen Tian<http://ieeexplore.ieee.org/search/searchresult.jsp?disp=cit&queryText=%28chen%20tian%3CIN%3Eau%29&valnm=Chen+Tian&reqloc%20=others&history=yes>
Min Feng<http://ieeexplore.ieee.org/search/searchresult.jsp?disp=cit&queryText=%28%20min%20feng%3CIN%3Eau%29&valnm=+Min+Feng&reqloc%20=others&history=yes>
Nagara...
2006 Apr 15
1
Begin with Autocompleter
..._request = new ActiveXObject("Microsoft.XMLHTTP");
14 } catch (e) {}
15 }
16 }
17
18 if (!http_request) {
19 alert(''InformaciĆ³n: No se ha podido crear la instancia del objeto XMLHTTP'');
20 return false;
21 }
22 http_request.onreadystatechange = function() { searchResult(); };
23 http_request.open(''GET'',"search_ajax.php?q="+element, true);
24 http_request.send(null);
25 }
26
27 function searchResult() {
28 if (http_request.readyState == 4) {
29 if (http_request.status == 200) {
30 alert(http_request.responseText);
31 } else {...
2006 Jun 29
13
find_by_contents not returning SearchResults?
The acts_as_ferret documentation says find_by_content returns an
instance of SearchResults, but I see this error when I try to use the
results.
undefined method `total_hits'' for []:Array
Here is the link to the documentation:
http://projects.jkraemer.net/acts_as_ferret/rdoc/classes/FerretMixin/Acts/ARFerret/ClassMethods.html#M000010
But here is the actual code:...
2011 Sep 09
2
acst_as_solr error
...ing error
"undefined method ''each'' for "
for this
results = Employee.find_by_solr(@id)
results.each do |emp|
puts emp.id
end
where plugin does not contains "each" method in acts_as_solr/libs/
search_results.rb
so for me each is not working with ActsAsSolr::SearchResults
-----------------------------------------------------------------
next i tried with https://github.com/mauricio/acts_as_solr plugin
wich results in following error
"undefined method ''find_by_solr'' for "
can any one provide me solution for this
thanks
-pab
--
You r...
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
...ied in JQuery has failed, including this
one. Perhaps due to my lack of knowledge. I would not like to install
the legacy upgrade.
What I have in my website is several pages(models) which use the same
search text field. Each controller has an action "search" which
renders a partial "_searchresults" on the page with the text field.
The code which works well in Rails 2.3.5 along with one typical
example search action from a controller and the "_searchresults" is
shown below:-
In the searches index.heml.erb:-
***************************************...........
<p align=&q...
2005 Feb 08
3
Q: ISDN / E1-PRI - fax problems - Receiving and setting of Service Indicator (SIN) / Bearer Capability (BC) / High Level Compatibility (HLC) / Low Level Compatibility (LLC)
...fax)
as far as i dug into the source neither the BC nor the HLC or LLC data
is forwarded to a dialplan variable and only the BC is decoded in libpri.
has anyone a solution for this?
is there any usable documentation on the HLC or LLC octets (bytes)?
i searched etsi and was overwhelmed with the searchresults (1531). what
i need to modify libpri would be a table of possible values and where to
find the HLC and LLC fields in the D-Channel.
regards
frank
2009 Mar 26
2
[LLVMdev] GSoC 2009 application
Hello,
I am a final semester Dual Degree( B.Tech. M.Tech.) student from Indian
Institute of Technology, Kanpur. I was looking forward to participate in
this year's GSoC 2009.Starting Fall 2009 i shall be pursuing a Phd in
compilers. I am having a good background in compilers. My current masters
thesis is aimed at automatic parallel code from c programs target for the
Cell Processor using
2008 Jan 09
5
Parallel indexing doesn''t work?
Hi,
I''m trying to get parallelized ferret indexing working for my AAF
indices, based on the example in the O''Reilly Ferret shortcut.
However, the resulting indices after merging seem to have no actual
documents.
I went and made minimal changes to the example in the Ferret shortcut
pdf, and indeed can''t get that to work either. I''d appreciate any help