Jeff is correct, as I said in the other thread, stored fields are returned. Solr can't return data it doesn't store. Your other option would be to call getData(stobj.objectid) which would return the actual FarCry object rather than the data returned from Solr. This will have the extension field because its coming from the DB (or the object broker).
Sean On Wednesday, November 7, 2012 9:44:25 PM UTC-5, Jeff Coughlin wrote: > > Try storing the field with the FarCry type as "file" (in this case the > field name is called filename). It should have the extension I was > referring to. You can do a simple listLast with a period delimiter on it > to get the extension. > > -- > Jeff Coughlin > > On Nov 7, 2012, at 20:18, AJ Mercer <[email protected] <javascript:>> > wrote: > > I did not describe my question very well on the other thread (did not have > farcry in front of me at the type) > > With Solr admin, you add 'Content Type' for each Farcry type you would > like to have indexed. > I have added dmFile and called it 'Document' - this is what I would like > to show in my search results > > <sidenote> > I am thinking I may have multiple (custom) files uploaded into the system, > dmFile1, dmFile2 for want of a better example, and add them to Solr and > label them all 'Document'. So in the search results ALL files display as > 'Document' > <sidenote> > > > This is what I get in stObj from search results. > > stObj Struct > Entries:14createdby string <snip>datetimecreated string{ts '2012-10-24 > 19:39:46'} datetimelastupdated string{ts '2012-11-05 17:56:02'} > fcsp_benablesearch stringtrue fcsp_documentsize string 228131 > fcsp_highlight Array (List)1 stringThis form authorises<snip>. 2 stringpdf3 > string/dmfile/Letter_of_Authorisation_-_Accountant_or_SMSF_Administrator.pdf4 > string <snip>5 string 6 string Letter of Authorisation – SMSF > Administrator or Accountant 7 string Letter of Authorisation – SMSF > Administrator or Accountant fcsp_id > stringcorporate_5D4D0C00-1DB6-11E2-8C03005056830000fcsp_sitename > string corporatelabel stringLetter of Authorisation – SMSF Administrator > or Accountant lastupdatedby string<snip> objectid > string5D4D0C00-1DB6-11E2-8C03005056830000ownedby > string 2744CAC0-B462-11E1-80B6005056830000 score string 214.395370483398 > typename stringdmFile > > > > There is no File Extension > > <image.png> > > > <image.png> > > -- > > *AJ Mercer* > <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org > community="Open" /> <http://webonix.org> > http://twitter.com/webonix > Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/> > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] <javascript:> > To unsubscribe, email: [email protected] <javascript:> > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > > > > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
