0 votes

I just started the trial of FileLocator Pro. What an awesome tool!

Searching for certain variables in source code works great in expert mode, but does not work in index mode. I've played around with options in the index config. All other searches in typical office documents are working fine in index mode. Can source code documents be indexed?


by (30 points)

1 Answer

0 votes

Indexing of source code can work but it has limitations. It helps to think about how an index search works. An index contains a list of terms that have been extracted from files and it's those terms that are searched in any subsequent searches. For normal text documents identifying terms is usually pretty straight forward, ie space separated sequences of characters or numbers.

Source code is much harder. For example,

*name[++p] = "sample";

Would result in three terms being added to the index:


If basic searching for variable names, comments etc is all you require then indexing should work OK. Support for more complex source code indexing is something that will be improved over future versions of the product.

by (87.4k points)