Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 23 JUN 2003 02:00:26PM Brian McCullough wrote:

Help. Followed the Arev docs to put make.index and index.flush in code (creating a btree index). It puts the flag in the dict of the field, but doesn't show up when you do a listindex, and doesn't actually build the index, %protect.spec% shows a 0 only. Any ideas to why it's not building the index like it's suppose to.


At 23 JUN 2003 02:28PM Richard Hunt wrote:

Brian,

I am no way an expert in "MAKE.INDEX" and "INDEX.FLUSH". the only documentation I can find is on "INDEX.FLUSH". If you can post your code that calls the two subroutines it might help others to figure out the problem.

Are you sure you are using "INDEX.FLUSH" correctly? The "FILE_SPEC" parameter is a bit tricky. It is not just the filename. The format for it is FILENAME:'*':ACCOUNT:'*':VOLUME


At 23 JUN 2003 03:47PM Brian McCullough wrote:

Thanks for the quick response Richard. Our code is right according to the Arev doc - it's writing correctly to the Dict, but we were using just the table name and indexed field for the parameters in index.flush as I thought it was suppose to take the default (currently attached) file. We'll try this and see what happens.

Thanks


At 24 JUN 2003 09:40AM Brian McCullough wrote:

Thanks again Richard,

We found out that it only worked if we ran both the index.flush for the indexed field, and the index.flush for all indexed fields in the file right afterwords.  Not sure why this is the case, but it worked.

Brian

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/48e161dcfc2c9f4c85256d4e0062eae2.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1