Not finding any mention of limits - although, 2mb of data is a *lot*. Just to test it's not a bug... can you try the following?
@documents.excerpt_for(d.content[0..1000]) Cheers -- Pat On 31/07/2009, at 2:56 PM, Pat Allan wrote: > > Hmm, could very well be there's a character limit for excerpts. I'll > look into it. > > If there is, what would you expect Thinking Sphinx do by default in > such a scenario? > > -- > Pat > > On 31/07/2009, at 2:01 AM, Maxus wrote: > >> >> Hi Pat, >> >> Thanks for responding to my message, >> >> The line in the view is this: >> >> <% @documents.each do |d| %> >> <%= d.id %> | <a href="<%= d.filepath %>" target="_blank"><%= >> d.filename %></a> | <%= d.filesize %> | <%= d.created_at %><br/> >> <em><%= d.excerpts.content %></em><br/><br/> >> <% end %> >> >> This is the pdf indexer I spoke to the group about a while ago, I'm >> trying storing the extracted text inside the DB. >> >> My guess is 10 items with 2mb of text each is what is causing the >> excerpts to fall over, my assumption is excerpts simply scan the text >> in the entity and pick out a section? perhaps the amount of text is >> simply too much or does searchd provide the excerpts? >> >> Thanks! >> Maxus >> >> On Jul 30, 9:06 pm, Pat Allan <[email protected]> wrote: >>> Hi Maxus >>> >>> What's the line in your view that's causing the error? >>> >>> -- >>> Pat >>> >>> On 29/07/2009, at 1:29 PM, Maxus wrote: >>> >>> >>> >>> >>> >>>> Hi People, >>> >>>> I have a wierd one, I'm trying to use excerpts, but I seem to be >>>> recieving random sphinx errors like so: >>> >>>> No response from searchd (status: , version: ) >>> >>>> On the server side I see: >>> >>>> Processing DocumentsController#index (for 192.168.2.3 at 2009-07-29 >>>> 20:25:25) [GET] >>>> Parameters: {"commit"=>"Search", "page"=>"2", "search"=>"house"} >>>> Rendering documents/index >>>> Querying Sphinx: house >>>> Document Load (373.5ms) SELECT * FROM `documents` WHERE >>>> (`documents`.`id` IN >>>> (32,33,34,36,40,43,44,45,46,48,49,50,53,54,55,59,61,62,63,64,65,66,67,68,69 >>>> )) >>> >>>> ActionView::TemplateError (No response from searchd (status: , >>>> version: )) on line #17 of app/views/documents/index.html.erb: >>> >>>> If I keep refreshing the page it will randomly work, my guess is >>>> some >>>> sort of time out perhaps? >>> >>>> Any ideas what I need to do to fix this, or any info I can provide >>>> to >>>> help point me in the direction of a fix? >>> >>>> Thanks! >>>> Maxus- Hide quoted text - >>> >>> - Show quoted text - >>> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
