I have two indexes created from directories "test1" and "test2". "test1" directory has "file1.java" whereas "test2" has two files "file1.java" and "file2.java" in it. "file1.java" is identical in both the directories. Let the indexes be index1 and index2 respectively.
Now when I analyze these two indexes using luke, I find that the scores for a keyword searched in the index1 is different than the score generated in index2. This keyword exists only in "file1.java".
Why are the scores different? Is there any way of indexing in Lucene by which I can force the scores to be the same?