Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Chicerjunge #1
Verity PDF Problem with Summary Text no whitespace
My PDF summaries, and not all of them, have the spacing between words removed
in Verity summaries. I've spent about 6 hours trying to figure this out. My db
custom collection runs just peachy.
What I've looked at:
Summaries are not using Metadata as there is no description in the metadata of
the PDF
PDF does have proper spacing (text can be selected, copied and pasted into
notepad)
Squished string comes from nowhere in particular in the document.
I do not have whitespace compression turned on. There appear to be spaces
between sentances (sentances are not together in the document)
I have the default setting for the style.prm.
I have the alternative working just peachy - that is not using #summary#, but
using my custom2 as the actual summary with the date. However, this doesn't
provide the 4 sentences 500 max summary that contains the search phrase.
Summaries are fine in Google
Code as follows:
<cfcollection action="create"
collection = "PubsSearch"
path = "D:\wwwroot\verity\">
<cfquery name="fileInfo" datasource="dsn">
Select top 20 'D:\wwwroot\pdffiles\' + pdf_location as filename,
'http://www.mysite.com/pubs/display.cfm?pubID=' + convert(varchar,c.pubID) as
custom1,
briefSummary + '<br>' + convert(varchar,datename(month,pubDate)) + ' ' +
convert(varchar,datepart(year,pubDate)) as custom2, fullTitle
table info not important
</cfquery>
<cfindex collection="PubsSearch"
action="refresh"
query="fileInfo"
key="fileName"
title="fullTitle"
type="file"
custom1="custom1"
custom2="custom2"
language="English"<cfsearch collection="PubsSearch,PublicationSearch" name="getPubs">
criteria="#searchText#">
<cfoutput query="getPubs" group="key">
<cfif isnumeric(key)>
<p><a href="http://www.mysite.com/pubs/display.cfm?pubID=#key#">#title#</a><br
/>
#summary#<br />
<cfoutput>#custom1#<br /></cfoutput>
#score#<br />
</p>
<cfelse>
<p><a href="#custom1#">#title#</a><br />
<cfoutput>#custom2#<br /></cfoutput>
#score#<br />
//The line below is where the bad summary is coming out.
#summary#</p>
</cfif>
</cfoutput>
Chicerjunge Guest
-
Odd Problem with Verity
Hello, I migrate a ColdFusion 6.1 on a Redhat Linux 3.0ES and AMD Opteron to Coldfusion 7 I installed Java 1.5 because I have problems with the... -
Verity for Fast Text Searching Macrochat
Verity for Fast Text Searching Macrochat Wednesday, August 17, 2005 12:00 PM - 1:00 PM US/Eastern Want to do free text searches like Google in... -
verity problem
Hi Ive created a search feature using the verity tool, however i am getting error, below is the code and the error. the collection name is... -
Validation Summary MessageBox Problem
Hi, I have built a composite control that takes in XML and creates controls based on the XML. For a simple example to test my control, it takes... -
Summary fields or Summary table?
First posting to the group - thanks to everyone for all the great tips! Is there any advantage either way between having a large number of...



Reply With Quote

