Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFSEARCH returning some duplicate records

Status
Not open for further replies.

calista

Programmer
Joined
Jan 24, 2001
Messages
545
Location
US
I am working on a full text search using the Verity search engine. All is well except for one thing, a few of the records are duplicated. I made sure the files it was returning were in there only once. As I sit here thinking about it, it seems to be duplicating files that are in subdirectories of the directory I indexed.

Here is my indexing code(IndexRecurse = YES):
Code:
<CFINDEX 
	collection=&quot;#IndexCollection#&quot;
    action=&quot;REFRESH&quot;
    type=&quot;PATH&quot;
    key=&quot;#IndexDirectory#\&quot;
	URLPATH=&quot;[URL unfurl="true"]http://127.0.0.1/cfdocs/NewIntranet/Documents/&quot;[/URL]
    extensions=&quot;#IndexExtensions#&quot;
    recurse=&quot;#IndexRecurse#&quot;
    language=&quot;#IndexLanguage#&quot;>
And, here is my search:
Code:
<CFOUTPUT>
<!--- Perform search. --->
<CFSEARCH 
	name = &quot;GetSearchInfo&quot;
	collection = &quot;#SearchCollection#&quot;
	criteria = &quot;#Criteria#&quot;>
Anybody have any insight into this? Calista :-X
Jedi Knight,
Champion of the Force
 
So I suppose without indexRecurse = no then it does not seem to duplicate? It could be an error in their recursion... that would seem like a particularly Allaire Error.

Also, make sure you have purged all previous indexes before re-indexing -- that could create dupes.


__________________________________
&quot;This is our Stretchy-Relativistic-Ruler -- it allows us to read a moving measurement from a fixed point accurately during space contraction... How fast can you run down the hall?&quot; -- Overheard Physics Professor at the University of Oregon
 
Yes, it is true that if you set recursion=no, there are not duplicate records, but neither does it index the files in the subdirectories, which I need to do. If you use action = refresh in the CFINDEX tag, that automaticatly purges the old index. You may be right about it being an Allaire problem, so I'll check out their site. Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top