Verity search not indexing
I have recently upgraded to coldfusion 8. I reworked my
verity searches but the main one of the website times out. I have
gotten it to complete a couple of times but this time it will not
complete. I have no clue what to change to make it index. I would
appreciate any help.
Thanks
This is the error "The request has exceeded the allowable
time limit Tag: cfoutput " It is a verity search of my website
"www.archives.alabama.gov" there are over 26,000 documents. It has
always worked fine until the upgrade to v.8 and it worked the first
several times but now it is timing out with the above message
everytime. I do not know where that tag is or how to change it.
That is what I need to know.
Similar Messages
-
Exchange 2010 SP3 CU7 Index / Search not Indexing / no result
I Have Problemes with an Exchange 2010 Sp3 Ru7 Server. The SearchEngine does not index anything. No Database have index Data. When i went to OWA no Searchresult on Server.
I have start the resetsearchindex etc. The Microsoft-Exchange-Troubleshooters/Operational gives no error, Mailbox Repair also no error. When i start resetsearchindex the Folder in the Database Directory ist going delete an renew. Then he create 19Files but
nothing more happend.
i configure Perfmon to see activity. There i see that under MSFTESQL-ExchangeCatalog the Counter ""Batches completed w/errors 1800"
After few hours an error in Eventlog came.
Die Exchange-Suchindizierung hat die Indizierung der Postfachdatenbank Mailbox_Database_01 (GUID = b69e081c-65d8-49a9-8a82-0cdc16333380) aufgrund eines Fehlers (Microsoft.Exchange.Msfte.BatchTimeoutException: Timeout detected for batch Database Guid:b69e081c-65d8-49a9-8a82-0cdc16333380;
NumberOfFailedDocuments:0; ShouldIsolateError: False; SubmitTickCount:38475899; BatchKind:RetryMailbox; Number of entries:100) vorübergehend deaktiviert.
Anyone an Idea ?
Thanks for Help- ThomasHi,
Here are some suggestions, please try these to check result.
Please check to see if you are using a 3rd party disk defragmenter. If you are using this type of software, stop all the 3rd party defragmentation services temporarily.
Please check to see if the CatalogData folder is being scanned by file-level antivirus OR on-demand antivirus. If it is, reconfigure both file-level and on-demand antivirus, so it is not scanning the CatalogData folder.
Please turn up logging to expert for MSExchange Search Indexer\Configuration and MSExchange Search Indexer\General.
Please rebuild search catalog and check if event 110 is logged in the application log. Event 110 means the full crawl is completed successfully.
Best regards,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Belinda Ma
TechNet Community Support -
Verity search not finding all matches
I am indexing a query of 1000 records. I have verified that
the word "training" appears in 7 records:
Record ID
52
135
246
535
642
849
926
When I search for "training" only records 52, 135, and 246
are returned.
Here is the kicker: Whe I sort the query in descending order
and then search for "training" records 962 and 849 are returned.
Records 535 and 642 are not returned in either case.
I have repaired and optimized the index in each case to make
sure but it appears that either indexing stops after a few records
or verity only returns a top few.
How does verity work?My New Code:
<cfindex action="PURGE" collection="#dbprefix#data_index"
status="">
<cfindex action="UPDATE" collection="#dbprefix#data_index"
key="SP_SESSION"
type="CUSTOM"
title="SP_SESSION_TITLE"
query="data"
body="SP_SESSION,SP_TRACK,SP_SESSION_TITLE,SP_SESSION_DESCRIPTION,FULL_NAME,TITLE,COMPANY ,SP_P_P_TITLE">
Still no luck.
Want to see for yourself?
Index the site here:
http://www.aspanet.org/2007conference/indexpages.cfm
Note: I am running two indexes on this page, they are wholly
independent of each other. the one with the problem is "data"
Also note that the numbers and data I provided at the
beginning where examples to simplify my question.
Also, use the browser search on the index page to look for
NC07PROG/NC07_CM31 you will find it near the top. Now search for
NC07PROG/NC07_SS05 you will find it near the bottom.
Now go to the actual search here:
http://www.aspanet.org/2007conference/page.cfm?name=_Search
Search for NC07PROG/NC07_CM31 you will find it
Now search for NC07PROG/NC07_SS05 you will not find it
Now search for the word "training". One of the results will
be record NC07PROG/NC07_CM31 but not NC07PROG/NC07_SS05 -
Mail search not working + Spotlight keeps indexing
I have an old problem that has resurfaced after creating a new user on my Mac. Mail search brings no results and Spotlight is constantly indexing - day in, day out. It never seems to get there. I tried turning my hard drive to private in Spotlight settings and then taking it out. Previously Spotlight seemed to get bogged down with external drives now it's stuck indexing my Mac.
Any advice? Is there a way I get unstick this?I can't believe that Apple have STILL not sorted this out. I haven't created a new user (so it's nothing to do with that), but Mail.app won't find anything when searching "Entire Message" in the current Mailbox or in "All Mailboxes". This has been ongoing since Leopard was first released, and we are now up to 10.5.8 without this being fixed.
Here are some of the reports:
Topic : Spotlight does not search Mail messages
http://discussions.apple.com/thread.jspa?threadID=1366101
Topic : Search "Entire Message" returns "0 Found" in mailboxes
http://discussions.apple.com/thread.jspa?threadID=1341832
Topic : Spotlight died on me
http://discussions.apple.com/thread.jspa?threadID=1226645
Topic : I can't search through my inbox!
http://discussions.apple.com/thread.jspa?threadID=1387827
Topic : Leopard's Spotlight doesn't search Mail messages
http://discussions.apple.com/thread.jspa?threadID=1219030
Topic : Mail Search
http://discussions.apple.com/thread.jspa?threadID=1347387
Topic : Mail Won't Search
http://discussions.apple.com/thread.jspa?threadID=1204827
Topic : Search does not work
http://discussions.apple.com/thread.jspa?threadID=1254966
Topic : Mail search not working
http://discussions.apple.com/thread.jspa?threadID=1289253
Topic : Unable to Search Mailbox
http://discussions.apple.com/thread.jspa?threadID=1232504
Topic : Why is Search in Mail.app busted?
http://discussions.apple.com/thread.jspa?threadID=1403758
Topic : Mail Search comes up empty
http://discussions.apple.com/thread.jspa?threadID=1378473
Topic : Search "Entire Message" not working with Smart Mailboxes?
http://discussions.apple.com/thread.jspa?messageID=6548355�
Topic : Mail searches yield no results! Smart mailboxes also yield no results!
http://discussions.apple.com/thread.jspa?threadID=1395508
Topic : 10.5.2 Mail.app search still not working (Entire Message)
http://discussions.apple.com/thread.jspa?threadID=1389466 -
Search is not indexed error when starting nsslapd
Hello there,
I'm running DS 11g version and every time i restart the slapd instance , i see the following in error log. Any reason why?
[23/Jan/2013:14:42:24 -0500] - WARNING<20805> - Backend Database - conn=-1 op=0 msgId=-1 - search is not indexed base='o=domain.com' filter='(|(objectclass=groupOfName
s)(objectclass=groupOfUniqueNames))' scope='sub'
Thanks!ok, we did not turn ON, I think it is by default turned ON and does this unindexed search since we have more than 30million entries. if we turn it off will that affect any since we don't use 'isMemberOf'.
-
Hi.
Checking my Logs files i found a lot of Warnings messages that make reference to unindexed search. What commands i have to use to reindex all the database or what comands i have to run in order to reindex only the attributes and what attributes i have to reindex????
this are the log messages...
thanx for all Ramses
errors log
[16/Feb/2006:00:44:26 -0600] - WARNING<20805> - Backend Database - conn=4355 op=
18 msgId=19 - search is not indexed
[16/Feb/2006:00:44:33 -0600] - WARNING<20805> - Backend Database - conn=4273 op=
193 msgId=194 - search is not indexed
[16/Feb/2006:00:44:49 -0600] - WARNING<20805> - Backend Database - conn=4275 op=
164 msgId=165 - search is not indexed
access log
[16/Feb/2006:00:44:26 -0600] conn=4355 op=17 msgId=18 - SRCH base="dc=mydomain,dc
=gob,dc=mx,o=internet" scope=0 filter="(|(objectClass=inetDomain)(objectClass=in
etdomainalias))" attrs=ALL
[16/Feb/2006:00:44:26 -0600] conn=4355 op=17 msgId=18 - RESULT err=0 tag=101 nen
tries=1 etime=0
[16/Feb/2006:00:44:26 -0600] conn=4275 op=163 msgId=164 - SRCH base="o=mydomain.g
ob.mx,o=isp" scope=0 filter="(objectClass=*)" attrs=ALL
[16/Feb/2006:00:44:26 -0600] conn=4275 op=163 msgId=164 - RESULT err=0 tag=101 n
entries=1 etime=0
[16/Feb/2006:00:44:26 -0600] conn=4355 op=18 msgId=19 - SRCH base="o=mydomain.gob
.mx,o=isp" scope=2 filter="(|([email protected])(mailAlternateAddress=ram@
mydomain.gob. mx)([email protected]))" attrs="preferredLang
uage mail mailEquivalentAddress"
[16/Feb/2006:00:44:33 -0600] conn=4273 op=192 msgId=193 - RESULT err=0 tag=101 n
entries=1 etime=36 notes=U
[16/Feb/2006:00:44:33 -0600] conn=4273 op=193 msgId=194 - SRCH base="o=mydomain.g
ob.mx,o=isp" scope=2 filter="(|([email protected])(mailAlternateAddress=ra
[email protected]. mx)([email protected]))" attrs="objectClass
inetUserStatus mailUserStatus inetMailGroupStatus uid preferredLanguage mailRou
tingAddress mailDeliveryOption mail mailAlternateAddress mailEquivalentAddress v
acationStartDate vacationEndDate mailConversionTag mailMsgMaxBlocks mailHost mai
lQuota mailMsgQuota mailProgramDeliveryInfo mailDeliveryFileURL maildeliveryfile
mailAutoReplyMode mailAutoReplySubject mailAutoReplyText mailAutoReplyTextInter
nal mailAutoReplyTimeout mailSieveRuleSource mailForwardingAddress mailDeferProc
essing mgrpMsgRejectAction mgrprejecttext mgrpMsgRejectText mgrpBroadcasterPolic
y mgrpDisallowedBroadcaster mgrpAllowedBroadcaster mgrpDisallowedDomain mgrpAllo
wedDomain mgrpMsgMaxsize mgrpAuthPassword mgrpModerator mgrpDeliverTo memberURL
uniqueMember mgrpRFC822MailMember rfc822mailmember mgrpErrorsTo mgrpAddHeader mg
rpRemoveHeader mgrpMsgPrefixText mgrpMsgSuffixText mgmanMemberVisibility expanda
ble"
[16/Feb/2006:00:44:49 -0600] conn=4355 op=18 msgId=19 - RESULT err=0 tag=101 nen
tries=1 etime=23 notes=U
[16/Feb/2006:00:44:49 -0600] conn=4275 op=164 msgId=165 - SRCH base="o=mydomain.g
ob.mx,o=isp" scope=2 filter="(|([email protected])(mailAlternateAddress=ra
[email protected]. mx)([email protected]))" attrs="objectClass
inetUserStatus mailUserStatus inetMailGroupStatus uid preferredLanguage mailRou
tingAddress mailDeliveryOption mail mailAlternateAddress mailEquivalentAddress v
acationStartDate vacationEndDate mailConversionTag mailMsgMaxBlocks mailHost mai
lQuota mailMsgQuota mailProgramDeliveryInfo mailDeliveryFileURL maildeliveryfile
mailAutoReplyMode mailAutoReplySubject mailAutoReplyText mailAutoReplyTextInter
nal mailAutoReplyTimeout mailSieveRuleSource mailForwardingAddress mailDeferProc
essing mgrpMsgRejectAction mgrprejecttext mgrpMsgRejectText mgrpBroadcasterPolic
y mgrpDisallowedBroadcaster mgrpAllowedBroadcaster mgrpDisallowedDomain mgrpAllo
wedDomain mgrpMsgMaxsize mgrpAuthPassword mgrpModerator mgrpDeliverTo memberURL
uniqueMember mgrpRFC822MailMember rfc822mailmember mgrpErrorsTo mgrpAddHeader mg
rpRemoveHeader mgrpMsgPrefixText mgrpMsgSuffixText mgmanMemberVisibility expanda
ble"
[16/Feb/2006:00:44:56 -0600] conn=4273 op=193 msgId=194 - RESULT err=0 tag=101 n
entries=1 etime=23 notes=U
[16/Feb/2006:00:44:56 -0600] conn=4273 op=194 msgId=195 - SRCH base="dc=ims-ms-d
aemon,o=internet" scope=0 filter="(|(objectClass=inetDomain)(objectClass=inetdom
ainalias))" attrs=ALL
[16/Feb/2006:00:44:56 -0600] conn=4273 op=194 msgId=195 - RESULT err=32 tag=101
nentries=0 etime=0
[16/Feb/2006:00:45:06 -0600] conn=4275 op=164 msgId=165 - RESULT err=0 tag=101 nentries=1 etime=17 notes=UMake use db2index.pl.
Refer to http://docs.sun.com/source/816-6698-10/indexing.html
HTH,
Chetan -
I am trying to do a search inside of Outlook 2010. When I go to type in my search field, a box pops up and says that
SEARCH RESULTS MAY BE INCOMPLETE BECAUSE ITEMS ARE STILL BEING INDEXED. CLICK HERE FOR MORE DETAILS.
So I click on that and a box pops up that says:
OUTLOOK IS CURRENTLY INDEXING YOUR ITEMS AND 39122 ITEMS REMAINING TO BE INDEXED.
So then I go to OPTIONS and I look under the tab called SEARCH.... and then I go to INDEXING OPTIONS... it says
40 ITEMS INDEXED. INSUFFICIENT DISK SPACE TO CONTINUE INDEXING. SEARCH RESULTS MIGHT NOT BE COMPLETE.Hi,
Here are some resolution you can refer to :
1. check if the pst-file or mailbox has been marked to be indexed:
File-> Options-> section Search-> button Indexing Options…-> button Modify-> expand Microsoft Outlook
In the list that is shown under Microsoft Outlook, make sure that pst-file or mailbox is displayed and selected. If it is not listed, we can recreate the profile. If it’s listed, we can check if the pst file is corrupted.
2. Rebuild the index: Control Panel-> Indexing Options-> Advanced-> button Rebuild
For more information, you can refer to the following article:
http://www.msoutlook.info/question/47
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
sure that you completely understand the risk before retrieving any suggestions from the above link.
Thanks,
Angela Shi
TechNet Community Support -
Verity Search - exclude html tags when indexing?
I have a table I want to index, but some data stored in the
table contains HTML.
I want to index the content, but I want all HTML tags to be
excluded.
This is a problem, say you had a table storing all retail
stores, there's some HTML in the data, and you do a Verity search
for "Target" (as in the Target retail store). You will return a lot
of irrelevant results if there's a
target="blank" attribute in an A HREF tag, for example. Can
you strip these out during the <CFINDEX> ?
Any idea on how to accomplish this?Hi user494326,
I'm actually having trouble getting html into a CLOB. It sounds like you were able to do this successfully. What did you do to get it in as far as escaping characters, etc. I'd love to see how you handled that, it would be greatly appreciated! -
Backend Database - conn=34870993 op=1 msgId=2 - search is not indexed
1. Here is the warning message in my error log, is this kind warning message can be ignored ?
[09/Dec/2005:09:02:00 -0600] - WARNING<20805> - Backend Database - conn=34870990 op=1 msgId=2 - search is not indexed
[09/Dec/2005:09:02:05 -0600] - WARNING<20805> - Backend Database - conn=34870992 op=1 msgId=2 - search is not indexed
[09/Dec/2005:09:02:13 -0600] - WARNING<20805> - Backend Database - conn=34870993 op=1 msgId=2 - search is not indexed
2. this thread has same error message like above but I don't have a stalled DS server.
http://swforum.sun.com/jive/thread.jspa?threadID=56035&tstart=240
thanks for your pointer
tjIt means that you are doing unindexed search, which may impact your performance.
It usually has two reasons:
a. the attribute is not indexed
b. attribute is indexed, but you reach your nsslapd-allidthreshold.
I have this repeated warning message in my server, but that doesn't affect my application a lot so far. I am just keeping my eye on it. However, it's better to fix it. -
Messaging Server (sharing folder) searching LDAP is not indexed, why?
There's an feature of "sharing a mail folder"
in JMS (Java Messaging Server), whereby
a user could share a folder with another user.
But when a user (uid) is entered into
the "Admission List" box, and the Add button
is pressed, it failed with some error messages
Invalid user and Admin Limit exceeded.
I've asked in the JMS forum and Shane said
this:
The "Administrative limit exceeded" error agrees with the Notes=U and etime=12 in the LDAP access log file. The problem is that the search is not indexed and therefore taking long enough to run foul of the timelimit. You will need to consult with Directory Server experts to determine why this search is not indexed and resolve that.
Could someone enlighten me on what I've
missed out when I've configured the Ldap
server during my installation of the JES systemHere are the extracts of the access and error logs when the "Add" button (after a uid was entered into the box) was clicked.
Invalid user error line appeared on screen
Error log:
WARNING<20805> - Backend Database - search is not indexed base='o=bunet' filter='(&(&(mailUserStatus=active)(objectClass=inetmailuser)(mailHost=jsms.our.domain)(uid=cmtsang))(!(mgmanHidden=true)))' scope='sub'
Access log:
SRCH base="o=bunet" scope=2
filter="(&(&(mailUserStatus=active)(objectClass=inetmailuser)
(mailHost=netnet.our.top.domain)(uid=cmtsang))(!(mgmanHidden=true)))" attrs="cn mail sn telephoneNumber department"
RESULT err=0 tag=101 nentries=1 etime=7 notes=U -
Verity Search Server on Macintosh
I was intending to use the ColdFusion Verity Search Service but the service is unable in the ColdFusion Administrator. It would seem the server needs to be installed separately but the link in LiveDocs is unavailable, I’m using CF8 developer on a Macintosh, if anyone knows where I can find the installation software that would be appreciated. Thanks.
I don't know about that, pwizzard. Here's something else to consider. While there's no "Mac" installer, there is a Linux one. I think that will work for you. Note that you do need to have a license key for CF to get to it. (In other words, this won't work if you're using the Developer edition, because it has no license key.)
Short answer:
Go to the page, https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity, enter your CF license key (standard or enterprise), and download the installer (for Linux) from there. Let us know if it works
It's also unfortunate that the /go/verity/ link fails. While we can't change the CF8 licvedocs page you found, I did change the corresponding CF9 page to offer the link above.
Long answer:
As for how I figured out that this may be what you need, here's what I did, in case any of it may help you or others in the future.
First, I recalled that there was a page of installers that went along with CF. I couldn't remember the link, but I trusted that the Adobe CF site would get me there.
- I went to the CF front page (can be found via google): http://www.adobe.com/products/coldfusion/
- choose link in lower right of right nav bar for CF8: http://www.adobe.com/products/coldfusion/coldfusion8/
- choose link to download trial
- log in (if you don't want to login, just keep reading).
- choose link for "related ColdFusion downloads": http://www.adobe.com/support/coldfusion/downloads.html
- and note that you could also just visit that link directly, now that you know it, without needing to log in
- there, it offers a section on "Verity (language packs and standalone installer)", and it has the link I offered above
Admittedly, that page says that the installer is meant for installing Verity on a machine separate from CF, so I wondered if it was what you really needed. I decided to search google for help (coldfusion install verity) and found this http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=othertechnologies_06.htm l. I guess that's the page you had found, because it offers a link to get to the installer, as http://www.adobe.com/go/verity, which fails (and because this is the CF8 docs, we can't even update it with a corrected link if we find one.)
But note that these help pages offer a popup box that offers a link to the CF9 docs: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/index.html. Unfortunately, that goes to the front page of the docs. You need to note where you were on the previous page (bummer). At the top of the CF8 doc page, we see that the page was within "Installing and Using ColdFusion / Installing Integrated Technologies". We can select that from the CF docs front page, which opens to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18c28 -7ff1.html.
The link for the verity page itself is http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html. Sadly, that page (almost identical to the CF8 one) also has that failing link, but at least we can update the page with the proper one.
I wasn't positive that it was the right link, until I did some more digging. (FWIW, I tried to find any old version of the go/verity page at archive.org, but no luck. Returning to the google search results list, I did find this, though: http://www.adobe.com/support/coldfusion/verity_reg/register/index.cgi. That looked just like the first link offered above, though only for CF7, so I was more confident that the first link I offered is indeed what you need.)
I thought to search google for the specific phrase "adobe.com/go/verity", and there it found a couple of other CF9 doc pages, and one of them (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity) did also have the bad /go/verity link, and someone offered in a comment a link to (again) the original download page I offered (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity). So that really seems the right page, and I have added a comment to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html.
One last thing: while the download page doesn’t have an OS X-specific installer, the help page does mention OS X and says getting this installer is the solution, and it does offer a Linux installer to look for, so I suppose that's what you are supposed to you. One thing that still has me a little suspect of things is that I did use a key to get to that download page, and I see the filename offered for the Linux installer is "coldfusion-search-lin.bin", not the "ColdFusion_9_Verity_linux.bin name offered". But maybe it's just a doc inconsistency.
Anyway let us know if it helps.
/charlie -
Is it possible to encrypt the url of the file in the verity
search results, so that the user can't view the actual folder
structure of the file. Please help if some one knows how this could
be done. I would really appreciate it.
ThanksThe issue is not how to remove all CFM files from the
collection. We just want CFM files that do not output anything to
the user to be excluded from the search index. Most of the files in
this site are CFM files. Most importantly would be application.cfm,
form action pages, and other included files.
Certainly we could parse the results for a filename in a
predefined list, but we are trying to avoid defining this
programmatically; thinking that it is odd that these files get
included in the results at all. In the past we have segmented sites
using .cfm and .cfml as a way of excluding specific files from the
index (in the collection definition, we would not include the
specific extension as required). But this site has been in
production for some time, and is just now adding a search feature.
We don't want to rename files, and have to recheck every single
page and link in the entire site.
Does that explain what we're trying to do better?
Cheers,
Kris -
Verity Search using CF 4.5
Hi,
I am using CF 4.5 and have a verity search set-up on a
intranet. The search works in that in returns data, however I am
having a few problems, some of the returned links return for
example www.hotmail.com/www.hotmail.com/people/index.htm where the
correct link should be www.hotmail.com/people/index.htm.
Asso, if i remove a folder from the intranet folder
structure, it is still returning the file when a search is carried
out.
Any comments would be greatly welcomed.
ThanksIts as safe as using any other vendor de-supported software.
Eventually, you will probably have to replace hardware and run into
problems where you won't be able to find an operating system that
will support it, etc., not to mention unavailable drivers that
interconnect you to your databases, etc.
Phil -
I have a Verity collection and I am searching it
successfully. HOWEVER, I have three custom fields that I am using
as part of the index for each file. I am noticing that by default
Verity is NOT searching these custom fields. I figured out that for
the criteria parameter of cfsearch I can do this:
criteria="#strSearch# OR cf_custom1 <contains>
#strSearch# OR cf_custom2 <contains> #strSearch# etc...."
This will indeed search the custom fields, but only using
simple search terms like "web" or "web development" or "web AND
development".
As soon as I try to use more of the other Verity searches
like "web <near> development" or "<case> CIA", it
throws an error. How can I make it so I can search the custom
fields but also allow the user to use Verity's more powerful search
terms?public class StringSearchTest {
public static void main(String[] args){
Random rnd = new Random();
String alpha = " abcdefghijklmnopqrstuvwxyz";
String s = "";
StringBuffer sb = new StringBuffer(3000100);
for(int i = 0; i< 1500000;i++){
sb.append(alpha.charAt(rnd.nextInt(alpha.length())));
//if((i % 1000)==0) System.out.println(i);
sb.append("j_a_v_a");
for(int i = 0; i< 1500000;i++){
sb.append(alpha.charAt(rnd.nextInt(alpha.length())));
s = sb.toString();
// now s is about 3,000,000 characters long or about 500,000 5 letter words
for(int i = 0; i<1000; i++){
System.out.println(i + s.indexOf("j_a_v_a"));
}I generate a string of about 3 million random characters in is. Stuff the string "j_a_v_a" into the middle and then use good old indexOf() to find it. I repeat the search a thousand times, printing crap out to the console each time through the loop and this process easily runs in 10 seconds. This means it takes less than a hundredth of a second to do a single find (on my box - millage may vary).
Now I know that that a hundredth of a second is WAY slower than it could be. But exactly why do you need it to be way faster than that? Do you need it to be faster so bad that you need to actually bring in the consultants, ask about algorithms, write a bunch o' code, test it out and document it?
Remember the quote about premature optimization being the root of all evil?
Well, it is. You should not be writing the fast algorithm until you have first written the butt simple code to see how slow it is, and if you did write that code, you should have posted it, or clocked it and told us how slow it was and given us some indication of why and how much faster it needed to be.
Sorry, nothing personal, I'm in a bad mood today. -
Re-install Verity Search error code -6062
Can someone provide information on unistalling and
reinstalling verity search? It appears that my collection files are
not being seen by the verity search system. I believe this problem
happened after a CF service patch install.
Please review error messages
Warning Log file
K2AdminConfig had warnings..
WARNING: Unable to open
C:\CFusionMX7\verity\Data\host\admin\admin.xml
styleset
1
Def_FileSystem
y
exitK2Admin Server: localhost:9950 connected. Type ? for
help.
RCADMIN - Verity, Inc. Version 5.5.0
rcadmin> Modify Type (Update=0, Insert=1):Style
Information:
Alias: Style state (store=1,active=2): Style type
(new=1,edit=2,clone=3): Admin Alias: Clone Alias:
Gateway[(o)dbc|(n)otes|(e)xchange|(d)ocumentum|(f)ilesys|(w)eb|o(t)her]:
Charmap: Description: Path:Save changes? [y|n]:Error code : -6062
Description: StyleSet exists. Cannot insert entry.
rcadmin> styleset
1
ColdFusionK2
y
exitK2Admin Server: localhost:9950 connected. Type ? for
help.
RCADMIN - Verity, Inc. Version 5.5.0
rcadmin> Modify Type (Update=0, Insert=1):Style
Information:
Alias: Style state (store=1,active=2): Style type
(new=1,edit=2,clone=3): Admin Alias: Clone Alias:
Gateway[(o)dbc|(n)otes|(e)xchange|(d)ocumentum|(f)ilesys|(w)eb|o(t)her]:
Charmap: Description: Path:Save changes? [y|n]:Error code : -6062
Description: StyleSet exists. Cannot insert entry.
y
exitK2Admin Server: localhost:9950 connected. Type ? for
help.
RCADMIN - Verity, Inc. Version 5.5.0
rcadmin> Modify Type (Update=0, Insert=1):Index Server
Alias:Port:Description:Bind:Admin Alias:Number of Listeners:Number
of Async. Threads:Number of Sync. Threads:Access
Type(Auth=0,Anonymous=1,Admin=2):Save changes? [y|n]:Error code :
-6075
Description: A Service with the same alias already exists in
the system.
When indexing plcoll I received this error message.
• Unable to optimize collection plcoll.
An error occurred while performing an operation in the Search
Engine library.
Error switching collection offline:
com.verity.api.administration.ConfigurationException: Failed to
find configuration key. (-6005)
ThanksDo a QuickTime standalone install. That usually fixes the 2093 error.
http://www.apple.com/quicktime/download/standalone.html
Save it to your your hard drive - don't install over the internet.
Maybe you are looking for
-
Problem to connect to D-Link DIR-655
I have MacBook Pro with Lion 7.1 and a router D-link DIR 655 (with latest firmware). I have had problem with the WiFi connection now and then. Just now I can not see my router in list but I can see many neigbours. It happends that I can see the route
-
Problem in Purchase Order Attachments
Hi Team.. I have a problem, we use the function to attach file in purchase orders (Services for Object > Create Attachment) We can attach files and after we can see them without problems. But after the days pass... and we want to see the attachment a
-
I want to make my video's bakcground transparent in flash?
hi I work on flash CS3 I created a video in sony vegas, and imported it to flash, but the background is black, I want it to be transparent, what should I do? P.S: in sony, there is no background, except the original black backgound that we see when w
-
is there an easy way to delete duplicate? or do i have to click on every song and deleate the extra one.
-
Fluff in the lightening connector preventing charging
Every now and then my phone does not start to charge when I connect it, I first noticed this on my iPhone 5, and now am getting it on my iPhone 6 so I'd be surprised if it wasn't a common problem. On the first occassion I took it straight to the Appl