search for: term_enum

Displaying 4 results from an estimated 4 matches for "term_enum".

2006 Feb 28
2
Most Popular Searches
Hi, I have an index where each document contains an untokenized ''url'' field. I would like to query the index for the most popular urls. In SQL I would do this via a Group By clause. Is there anything in Ferret that will do something similar? I found this discussion that proposed a solution involving TermEnums:
2006 Oct 05
4
search results autocompletion
...SUGGESTION_INDEX << suggestion.to_doc } } SUGGESTION_INDEX.optimize end def self.all_terms(klass) reader = Index::IndexReader.new(Object.const_get(klass.name.upcase + "_INDEX_DIR")) terms = [] begin reader.field_names.each {|field_name| term_enum = reader.terms(field_name) begin term = term_enum.term() if !term.nil? if klass::SUGGESTIONABLE_FIELDS.include?(field_name) terms << term end end end while term_enum.next? } ensure reader.close end...
2006 Jun 20
7
Any fast way to update non-indexed fields?
Hi, >From looking at Ruby sources it seems that every update method deletes and reinserts documents. It makes sense if indexed fields are changed but what if it is not the case? It would speed up update a lot indexes did not have to be updated twice for nothing. Any quick way to do it? -- Sergei Serdyuk Red Leaf Software LLC web: http://redleafsoft.com -- Posted via
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which does not have a sys/dir.h nix_io.c:5:21: sys/dir.h: No such file or directory make: *** [nix_io.o] Error 1 I couldn''t find an obvious way around this... any suggestions? Thanks, Rich Marisa Cornell Information Technologies Cornell University