WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit f5df398f authored by John Zhang's avatar John Zhang
Browse files

remove lusearch-fix benchmark

lusearch-fix was added in the last release due to a bug in the old
version of lucene. This bug is fixed in the newer version, thus
there is no need for lusearch-fix benchmark anymore.
parent 13877a54
<!--
* Copyright (c) 2017 The Australian National University.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0.
* You may obtain the license at
*
* http://www.opensource.org/licenses/apache2.0.php
-->
<project name="lusearch-fix" default="all" basedir="../..">
<description>DaCapo lusearch-fix benchmark</description>
<property file="dacapo.properties"/>
<property name="bm-name" value="lusearch-fix"/>
<import file="../common.xml"/>
<target name="fix-operation">
<move file="libs/lucene/build.xml" tofile="libs/lucene/build-tmp.xml"/>
<copy file="libs/lucene/build-tmp.xml" tofile="libs/lucene/build.xml"/>
<touch file="libs/lucene/lucene.patch"/>
<patch patchfile="${bm-files}/lusearch-fix.patch" dir="${basedir}" strip="0" ignorewhitespace="yes"/>
</target>
<target name="bm-build" depends="fix-operation, lucene">
<mkdir dir="${bm-build-dir}"/>
<javac srcdir="${bm-src-dir}" source="1.5"
classpath="${harness-classpath}:${lucene-jars}/${lucene-core-jar-name}:${lucene-jars}/${lucene-demos-jar-name}"
destdir="${bm-build-dir}"
includes="org/dacapo/lusearchFix/*" debug="true" debuglevel="lines,vars,source"/>
<delete file="libs/lucene/build.xml"/>
<delete file="libs/lucene/lucene.patch"/>
<move file="libs/lucene/build-tmp.xml" tofile="libs/lucene/build.xml"/>
</target>
<target name="jar">
<jar destfile="${bm-jars}/dacapo-${bm-name}.jar" basedir="${bm-build-dir}"/>
</target>
<target name="copy-data">
<mkdir dir="${bm-data}/lusearchFix"/>
<copy todir="${bm-data}/lusearchFix">
<fileset dir="bms/lusearch/data/lusearch">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="data" depends="copy-data">
<zip basedir="${bm-data}" includes="**" destfile="${bm-dat}/${bm-name}.zip"/>
<delete dir="${bm-data}"/>
</target>
</project>
<HTML>
<HEAD>
<TITLE>DaCapo Benchmarks: Avrora</TITLE>
<META HTTP-EQUIV="Description" NAME="DaCapo Benchmark: Avrora"
CONTENT="The DaCapo Benchmark: Avrora.">
<META HTTP-EQUIV="Keywords" NAME="Keywords"
CONTENT="dacapo benchmarks performance java lusearch">
<LINK REL="stylesheet" TYPE="text/css" HREF="../dacapo.css"/>
</HEAD>
<BODY>
<CENTER><H3>lusearch</H3></CENTER>
<H4>Description:</H4>
<H4>Characteristics:</H4>
<H4>References:</H4>
<H4>Harness:</H4>
<A HREF="index.html" TARGET="_top">Javadoc for lusearch harness.</A>
</BODY>
</HTML>
/*
* Copyright (c) 2005, 2009 The Australian National University.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0.
* You may obtain the license at
*
* http://www.opensource.org/licenses/apache2.0.php
*/
package org.dacapo.harness;
import java.io.File;
import java.lang.reflect.Constructor;
import org.dacapo.parser.Config;
/**
* date: $Date: 2009-12-24 11:19:36 +1100 (Thu, 24 Dec 2009) $
* id: $Id: LusearchFix.java 738 2009-12-24 00:19:36Z steveb-oss $
*/
public class LusearchFix extends org.dacapo.harness.Benchmark {
private final Object benchmark;
public LusearchFix(Config config, File scratch) throws Exception {
super(config, scratch, false);
Class<?> clazz = Class.forName("org.dacapo.lusearchFix.Search", true, loader);
this.method = clazz.getMethod("main", String[].class);
Constructor<?> cons = clazz.getConstructor();
useBenchmarkClassLoader();
try {
benchmark = cons.newInstance();
} finally {
revertClassLoader();
}
}
@Override
public void iterate(String size) throws Exception {
method.invoke(benchmark, (Object) (config.preprocessArgs(size, scratch)));
}
}
benchmark lusearch-fix
class org.dacapo.harness.LusearchFix
thread-model per_cpu
jars "dacapo-lusearch-fix.jar", "lucene-core-2.4.jar", "lucene-demos-2.4.jar";
size small args "-index","${SCRATCH}/lusearchFix/index-default",
"-queries","${SCRATCH}/lusearchFix/query",
"-output", "${SCRATCH}/lusearchFix.out",
"-totalqueries", "8",
"-threads", "${THREADS}"
thread-limit 8
thread-limit 8
output
stdout digest 0xfd64477d925558b71aaed2d12ce5cc54fcb5b771,
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709,
"lusearchFix.out0" digest(text) 0xf504131e563c10e7ca7711caf15264dcbcc9ece7,
"lusearchFix.out1" digest(text) 0x124eb372c8e64a8c02c3e85f28d88da8ee1c1c53,
"lusearchFix.out2" digest(text) 0x3de710980c8a308e0044a45e46f07ed01d2d45d8,
"lusearchFix.out3" digest(text) 0x2a13aa5915c410df7fa5a7c7aacf3754c2688bc3,
"lusearchFix.out4" digest(text) 0xf803a298ced992098a90d97cae841f6f4d556fbe,
"lusearchFix.out5" digest(text) 0x30c7b92be34124aded1b6da195332baf713d1988,
"lusearchFix.out6" digest(text) 0xdd84d60a2221e0779bc35d2170439979ea35d92a,
"lusearchFix.out7" digest(text) 0xec059058eb363a23e16b1dbbea9833096d7b1c77;
size default args "-index","${SCRATCH}/lusearchFix/index-default",
"-queries","${SCRATCH}/lusearchFix/query",
"-output", "${SCRATCH}/lusearchFix.out",
"-totalqueries", "64",
"-threads", "${THREADS}"
thread-limit 64
thread-limit 64
output
stdout digest 0x1542ed9da1c0710a928b344d724c1dc3d57a9f83,
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709,
"lusearchFix.out0" digest(text) 0xf504131e563c10e7ca7711caf15264dcbcc9ece7,
"lusearchFix.out1" digest(text) 0x124eb372c8e64a8c02c3e85f28d88da8ee1c1c53,
"lusearchFix.out2" digest(text) 0x3de710980c8a308e0044a45e46f07ed01d2d45d8,
"lusearchFix.out3" digest(text) 0x2a13aa5915c410df7fa5a7c7aacf3754c2688bc3,
"lusearchFix.out4" digest(text) 0xf803a298ced992098a90d97cae841f6f4d556fbe,
"lusearchFix.out5" digest(text) 0x30c7b92be34124aded1b6da195332baf713d1988,
"lusearchFix.out6" digest(text) 0xdd84d60a2221e0779bc35d2170439979ea35d92a,
"lusearchFix.out7" digest(text) 0xec059058eb363a23e16b1dbbea9833096d7b1c77,
"lusearchFix.out8" digest(text) 0x46526c8c323cb73b557ed2350a6cfa716239a397,
"lusearchFix.out9" digest(text) 0x6d7af0ee8d7c4df6d7c0c50de1247bc701a74d18,
"lusearchFix.out10" digest(text) 0x6ab514452c01344ef535d17fd442b77dff961c1a,
"lusearchFix.out11" digest(text) 0x2cfbafa842943c427c68d46b95e7cdbbe35f28b2,
"lusearchFix.out12" digest(text) 0xe2ad62ea565a02a69aeb4a6228210167e9601a3d,
"lusearchFix.out13" digest(text) 0x858045fd55ae838d6b8e7c1db714e7d1f2644a95,
"lusearchFix.out14" digest(text) 0xb52081d38c3532aaddbb7209c3d5e52f290aca33,
"lusearchFix.out15" digest(text) 0x1eb65f316683bbe8563c1f110737795a0235a56b,
"lusearchFix.out16" digest(text) 0xe54bdfa26f9937e34ded11b25ba87bfd99fbe479,
"lusearchFix.out17" digest(text) 0x74da696de49f48ccda0c7c45b242f8cd26158dcc,
"lusearchFix.out18" digest(text) 0x0028737837eb1e7c908b745f0239d3cdff4f0cb0,
"lusearchFix.out19" digest(text) 0xc124a478e00f574554e68d13fa52e1224009bdaa,
"lusearchFix.out20" digest(text) 0x59f55c68e8701518e2352a6b3290717f00ccc7aa,
"lusearchFix.out21" digest(text) 0x149c60a2bcb21c527b8fa6a740235155b995f6be,
"lusearchFix.out22" digest(text) 0x6704b8ee503a3790857059c4938db73877541dfa,
"lusearchFix.out23" digest(text) 0x355789b2158c9f95fda8f3b874427ef3f7754b4e,
"lusearchFix.out24" digest(text) 0xe2d3a6ef31fde6e2fc327c9d27be7186da68d36b,
"lusearchFix.out25" digest(text) 0x4f79d90075e0f98376f364af2cc88801cc42b2a1,
"lusearchFix.out26" digest(text) 0x5a4089d3fd75c99911dd52a4cd111d0c58c5e7b5,
"lusearchFix.out27" digest(text) 0x5c50cf41209ea398e63e22f8dd3c18efaca4a761,
"lusearchFix.out28" digest(text) 0xe5971f9325a597d7d8745e80a712688698423fa6,
"lusearchFix.out29" digest(text) 0x8908919896c70ea7e1d016da8b6d5123684dde5a,
"lusearchFix.out30" digest(text) 0x8ba09fa784d955339aece7b22503a5a0038a4c6b,
"lusearchFix.out31" digest(text) 0x294708d8dfffe77ca758024d440f85331ef75e18,
"lusearchFix.out32" digest(text) 0x7e6491e9970a3ee706f5716b270e25451bd4e3e2,
"lusearchFix.out33" digest(text) 0xee6184cc52e41b62b571be2a17cc651a495f4e7b,
"lusearchFix.out34" digest(text) 0xe83e95159c15e8b95e821de1b1a5ee8befe19e4c,
"lusearchFix.out35" digest(text) 0x767a3f2a04b8e0f60563fb41d8c1d26f6094a324,
"lusearchFix.out36" digest(text) 0x24b7183cf206342525c350822629a8945ff6ce6d,
"lusearchFix.out37" digest(text) 0xda28713691da91d9b3b5b1c7bcae6d849c7cfdb4,
"lusearchFix.out38" digest(text) 0x7da7b41bcc5dd734d8e64e285f6cf9b185aa9a77,
"lusearchFix.out39" digest(text) 0xe957f1ceb9cdbdafcde667cc85679feaf826096e,
"lusearchFix.out40" digest(text) 0xb34c37c5064db94c366fdda3f35f49a6441d8407,
"lusearchFix.out41" digest(text) 0x3770b307ff72cacc36e788e66cd30684bfc55084,
"lusearchFix.out42" digest(text) 0xb0dfb822bd95cc49de21f66eede9673f8ccf237c,
"lusearchFix.out43" digest(text) 0xc6f1011dc6b40c3f3295b8544067cb0cc3d48868,
"lusearchFix.out44" digest(text) 0xecd5a299ca6df0d4e2ce50997a0f0f6c280c5357,
"lusearchFix.out45" digest(text) 0x1166216cb004c4a65ef3f08abd2bf630343481e0,
"lusearchFix.out46" digest(text) 0x6ebe304fa2047ab2089ac0cb2c79ea4dfc71779d,
"lusearchFix.out47" digest(text) 0x9f2dffb9e32827a092f4d0e1463d23afca6c20ce,
"lusearchFix.out48" digest(text) 0x7dcfc9f5bc9c07c4508f22dfbfb842829a2f323a,
"lusearchFix.out49" digest(text) 0x357a97c10c1de67895c1552703c70e31a409854b,
"lusearchFix.out50" digest(text) 0x016aa8a4f412f9270ff24f344cf83946fca15c77,
"lusearchFix.out51" digest(text) 0xf48dc76688229ce055232dedb22a02d8a1137a54,
"lusearchFix.out52" digest(text) 0xd1ee4114f0a0b2f848c56f0a5ce6b8f55b3732b5,
"lusearchFix.out53" digest(text) 0x644742c64738cd08efe1d75d8185ff9af8cbe704,
"lusearchFix.out54" digest(text) 0x363b3c1f2136d6869222a000745390c8ed7658b3,
"lusearchFix.out55" digest(text) 0x160bfee6954931eda030148edb8041f821b1b043,
"lusearchFix.out56" digest(text) 0x4b380858c26df8c4caf5e3f65a94d41e01e32ad3,
"lusearchFix.out57" digest(text) 0x18c6f9a0e79c1a55795b05c001032ac81ffe0da2,
"lusearchFix.out58" digest(text) 0x7439662bba4752b60256089ec09837aeb494da4d,
"lusearchFix.out59" digest(text) 0x80e1105f47082966cbd0e3d95a923ebd7d54f86e,
"lusearchFix.out60" digest(text) 0x5e03ae89634597db899bdd18cec0ddce641f8458,
"lusearchFix.out61" digest(text) 0xa1120fa3e4a089a6d6d77c361aa375c69984ada2,
"lusearchFix.out62" digest(text) 0xfa609389a11c120f2f609f918f7455befac84e8c,
"lusearchFix.out63" digest(text) 0x241979661ccdc83437c5f52268c41d12f24e1128;
size large args "-index","${SCRATCH}/lusearchFix/index-default",
"-queries", "${SCRATCH}/lusearchFix/query",
"-output", "${SCRATCH}/lusearchFix.out",
"-totalqueries", "128",
"-threads", "${THREADS}"
thread-limit 128
thread-limit 128
output
stdout digest 0x6681e84c89f01d7232225ef5466e801a42c4477c,
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709,
"lusearchFix.out0" digest(text) 0xf504131e563c10e7ca7711caf15264dcbcc9ece7,
"lusearchFix.out1" digest(text) 0x124eb372c8e64a8c02c3e85f28d88da8ee1c1c53,
"lusearchFix.out2" digest(text) 0x3de710980c8a308e0044a45e46f07ed01d2d45d8,
"lusearchFix.out3" digest(text) 0x2a13aa5915c410df7fa5a7c7aacf3754c2688bc3,
"lusearchFix.out4" digest(text) 0xf803a298ced992098a90d97cae841f6f4d556fbe,
"lusearchFix.out5" digest(text) 0x30c7b92be34124aded1b6da195332baf713d1988,
"lusearchFix.out6" digest(text) 0xdd84d60a2221e0779bc35d2170439979ea35d92a,
"lusearchFix.out7" digest(text) 0xec059058eb363a23e16b1dbbea9833096d7b1c77,
"lusearchFix.out8" digest(text) 0x46526c8c323cb73b557ed2350a6cfa716239a397,
"lusearchFix.out9" digest(text) 0x6d7af0ee8d7c4df6d7c0c50de1247bc701a74d18,
"lusearchFix.out10" digest(text) 0x6ab514452c01344ef535d17fd442b77dff961c1a,
"lusearchFix.out11" digest(text) 0x2cfbafa842943c427c68d46b95e7cdbbe35f28b2,
"lusearchFix.out12" digest(text) 0xe2ad62ea565a02a69aeb4a6228210167e9601a3d,
"lusearchFix.out13" digest(text) 0x858045fd55ae838d6b8e7c1db714e7d1f2644a95,
"lusearchFix.out14" digest(text) 0xb52081d38c3532aaddbb7209c3d5e52f290aca33,
"lusearchFix.out15" digest(text) 0x1eb65f316683bbe8563c1f110737795a0235a56b,
"lusearchFix.out16" digest(text) 0xe54bdfa26f9937e34ded11b25ba87bfd99fbe479,
"lusearchFix.out17" digest(text) 0x74da696de49f48ccda0c7c45b242f8cd26158dcc,
"lusearchFix.out18" digest(text) 0x0028737837eb1e7c908b745f0239d3cdff4f0cb0,
"lusearchFix.out19" digest(text) 0xc124a478e00f574554e68d13fa52e1224009bdaa,
"lusearchFix.out20" digest(text) 0x59f55c68e8701518e2352a6b3290717f00ccc7aa,
"lusearchFix.out21" digest(text) 0x149c60a2bcb21c527b8fa6a740235155b995f6be,
"lusearchFix.out22" digest(text) 0x6704b8ee503a3790857059c4938db73877541dfa,
"lusearchFix.out23" digest(text) 0x355789b2158c9f95fda8f3b874427ef3f7754b4e,
"lusearchFix.out24" digest(text) 0xe2d3a6ef31fde6e2fc327c9d27be7186da68d36b,
"lusearchFix.out25" digest(text) 0x4f79d90075e0f98376f364af2cc88801cc42b2a1,
"lusearchFix.out26" digest(text) 0x5a4089d3fd75c99911dd52a4cd111d0c58c5e7b5,
"lusearchFix.out27" digest(text) 0x5c50cf41209ea398e63e22f8dd3c18efaca4a761,
"lusearchFix.out28" digest(text) 0xe5971f9325a597d7d8745e80a712688698423fa6,
"lusearchFix.out29" digest(text) 0x8908919896c70ea7e1d016da8b6d5123684dde5a,
"lusearchFix.out30" digest(text) 0x8ba09fa784d955339aece7b22503a5a0038a4c6b,
"lusearchFix.out31" digest(text) 0x294708d8dfffe77ca758024d440f85331ef75e18,
"lusearchFix.out32" digest(text) 0x7e6491e9970a3ee706f5716b270e25451bd4e3e2,
"lusearchFix.out33" digest(text) 0xee6184cc52e41b62b571be2a17cc651a495f4e7b,
"lusearchFix.out34" digest(text) 0xe83e95159c15e8b95e821de1b1a5ee8befe19e4c,
"lusearchFix.out35" digest(text) 0x767a3f2a04b8e0f60563fb41d8c1d26f6094a324,
"lusearchFix.out36" digest(text) 0x24b7183cf206342525c350822629a8945ff6ce6d,
"lusearchFix.out37" digest(text) 0xda28713691da91d9b3b5b1c7bcae6d849c7cfdb4,
"lusearchFix.out38" digest(text) 0x7da7b41bcc5dd734d8e64e285f6cf9b185aa9a77,
"lusearchFix.out39" digest(text) 0xe957f1ceb9cdbdafcde667cc85679feaf826096e,
"lusearchFix.out40" digest(text) 0xb34c37c5064db94c366fdda3f35f49a6441d8407,
"lusearchFix.out41" digest(text) 0x3770b307ff72cacc36e788e66cd30684bfc55084,
"lusearchFix.out42" digest(text) 0xb0dfb822bd95cc49de21f66eede9673f8ccf237c,
"lusearchFix.out43" digest(text) 0xc6f1011dc6b40c3f3295b8544067cb0cc3d48868,
"lusearchFix.out44" digest(text) 0xecd5a299ca6df0d4e2ce50997a0f0f6c280c5357,
"lusearchFix.out45" digest(text) 0x1166216cb004c4a65ef3f08abd2bf630343481e0,
"lusearchFix.out46" digest(text) 0x6ebe304fa2047ab2089ac0cb2c79ea4dfc71779d,
"lusearchFix.out47" digest(text) 0x9f2dffb9e32827a092f4d0e1463d23afca6c20ce,
"lusearchFix.out48" digest(text) 0x7dcfc9f5bc9c07c4508f22dfbfb842829a2f323a,
"lusearchFix.out49" digest(text) 0x357a97c10c1de67895c1552703c70e31a409854b,
"lusearchFix.out50" digest(text) 0x016aa8a4f412f9270ff24f344cf83946fca15c77,
"lusearchFix.out51" digest(text) 0xf48dc76688229ce055232dedb22a02d8a1137a54,
"lusearchFix.out52" digest(text) 0xd1ee4114f0a0b2f848c56f0a5ce6b8f55b3732b5,
"lusearchFix.out53" digest(text) 0x644742c64738cd08efe1d75d8185ff9af8cbe704,
"lusearchFix.out54" digest(text) 0x363b3c1f2136d6869222a000745390c8ed7658b3,
"lusearchFix.out55" digest(text) 0x160bfee6954931eda030148edb8041f821b1b043,
"lusearchFix.out56" digest(text) 0x4b380858c26df8c4caf5e3f65a94d41e01e32ad3,
"lusearchFix.out57" digest(text) 0x18c6f9a0e79c1a55795b05c001032ac81ffe0da2,
"lusearchFix.out58" digest(text) 0x7439662bba4752b60256089ec09837aeb494da4d,
"lusearchFix.out59" digest(text) 0x80e1105f47082966cbd0e3d95a923ebd7d54f86e,
"lusearchFix.out60" digest(text) 0x5e03ae89634597db899bdd18cec0ddce641f8458,
"lusearchFix.out61" digest(text) 0xa1120fa3e4a089a6d6d77c361aa375c69984ada2,
"lusearchFix.out62" digest(text) 0xfa609389a11c120f2f609f918f7455befac84e8c,
"lusearchFix.out63" digest(text) 0x241979661ccdc83437c5f52268c41d12f24e1128,
"lusearchFix.out64" digest(text) 0xb8fb38f7bccd0d397efbeaebbe550e65625ca0a4,
"lusearchFix.out65" digest(text) 0x29f2392e6b490f26bae3319ce42af2498ffbe7e9,
"lusearchFix.out66" digest(text) 0xb00afafce13e4caf0bc3263a2ebc2eee68a7258b,
"lusearchFix.out67" digest(text) 0xfacffa2084a452fccee130d19f9f91b13250d23b,
"lusearchFix.out68" digest(text) 0xa7e900deddcbcb7178888e7bcb91088f4d9a0412,
"lusearchFix.out69" digest(text) 0xce3d1f0db056cb929c90c6e790f2edd1d6e9cbce,
"lusearchFix.out70" digest(text) 0xefc651bfd13362f6239b9ff5270e328ce44f250a,
"lusearchFix.out71" digest(text) 0x852cf102767d24d0a69dbd080e90ec8dc62dba63,
"lusearchFix.out72" digest(text) 0x93c076c5210dc5e0975bc9673c92df1913614823,
"lusearchFix.out73" digest(text) 0x70e2f8f14eb5aff1e55834e143e206b0a8a5bf93,
"lusearchFix.out74" digest(text) 0x629b18fc4faf4dfbf3aa234a5b3326b77e21a6dd,
"lusearchFix.out75" digest(text) 0xf8ff92e975ef4fe9ed6ab3c67f9d18b81ccaefe8,
"lusearchFix.out76" digest(text) 0x91bd621c9858f263dced0972c6ef27dd85876190,
"lusearchFix.out77" digest(text) 0xca78805324c132de8b08656a699b6b4c3ff80df9,
"lusearchFix.out78" digest(text) 0x9cfefa95ecb987c2bb90a4ffc3c424ac9c37ca0c,
"lusearchFix.out79" digest(text) 0x626f80133f226bdaa51b7d32a099d6f45ba50dce,
"lusearchFix.out80" digest(text) 0xf0704c3cbab4ffbfe6c5b87ccad6411f2944d98b,
"lusearchFix.out81" digest(text) 0xc0ce44d079340e3f0a761c69ce5f2aca29fdcf34,
"lusearchFix.out82" digest(text) 0x86afb88e24aada5ae9dd0bdef5573e864d1daa8b,
"lusearchFix.out83" digest(text) 0x61fc89254fff73cab2405da4233559600b84d2ca,
"lusearchFix.out84" digest(text) 0xdbde0160af58af55021c05a94630ab00512434b8,
"lusearchFix.out85" digest(text) 0x36910fa35037697974822b5695a0314474ccb09f,
"lusearchFix.out86" digest(text) 0xc212535b703e2280b3d5c92fb412985c099ffecd,
"lusearchFix.out87" digest(text) 0x3c9441da03ee0e5ddcf9d7fbdcd97ef303fb1e0f,
"lusearchFix.out88" digest(text) 0x9bfafa6eed40c0d4d8116a4cc0a06d20d22855a3,
"lusearchFix.out89" digest(text) 0x1b7f1ad0af38390317fec1cd5ed787d249a91cfe,
"lusearchFix.out90" digest(text) 0x22aaa7e43e8265b1c7a997c241cb9278e2bb5f46,
"lusearchFix.out91" digest(text) 0x426e3bafdb13a42f654193feb4cf610b2dbf69b1,
"lusearchFix.out92" digest(text) 0x1695935d31888912e2cd83ad8ab41595955e6e6e,
"lusearchFix.out93" digest(text) 0xd005c6870842c1fffc30abfbfd779bf2a1ca17f1,
"lusearchFix.out94" digest(text) 0x6e44b2937342b2eddc2971eac2a7b233093e498a,
"lusearchFix.out95" digest(text) 0x6656028e78cde14638002be9622c9f152f6e02dc,
"lusearchFix.out96" digest(text) 0xa08f2283c090ddc6fb2fb73cabe4c8f9c52ea939,
"lusearchFix.out97" digest(text) 0xc6b5625acd5a40e644e7a25f4bc4547447b6f45d,
"lusearchFix.out98" digest(text) 0xb4ec733f4338c52c23bf5812a740a26ca936f611,
"lusearchFix.out99" digest(text) 0x079849e07755a7b13fe264b0291395b688b73bb5,
"lusearchFix.out100" digest(text) 0x06df322a9577c7b0d2a917a3b0a1b76194f999b8,
"lusearchFix.out101" digest(text) 0xd2ceb615509914476181455bdc378c8f42d2b1ee,
"lusearchFix.out102" digest(text) 0x9de691a3c2cae972b2a43d6633d064efb07b2b36,
"lusearchFix.out103" digest(text) 0x8828adb8b63e5c57558d1b77d681a7231b777426,
"lusearchFix.out104" digest(text) 0x0691d4311e97b2ccc8367dcca6e027d7f830c6af,
"lusearchFix.out105" digest(text) 0x553e15f5811e253d583128bef2f12417a35c13bc,
"lusearchFix.out106" digest(text) 0x23ee8d4faff434b1656eb03b4329e063c0fd1454,
"lusearchFix.out107" digest(text) 0x18ab67e12f9aed5a545c363baa3b19c938c611f9,
"lusearchFix.out108" digest(text) 0xb4b622996ee6495ef934f62848b638163e80048f,
"lusearchFix.out109" digest(text) 0x76d33f47f1f8d690a21dd6b72239d18888e5a4f9,
"lusearchFix.out110" digest(text) 0x822a57cda561fae21b3ca917cd7a60282d5a3a78,
"lusearchFix.out111" digest(text) 0x3b3a809b0333e4b9d1ddb2c214637cca2bffcfe8,
"lusearchFix.out112" digest(text) 0x76d4827152bb0106205256bdcc5652748c0636ae,
"lusearchFix.out113" digest(text) 0x4e03e41f53a780b8af9b661f449c9200e3ad7242,
"lusearchFix.out114" digest(text) 0xc8b86a663f8cf4fd2eeb121ceae7a15e9cc148d8,
"lusearchFix.out115" digest(text) 0x13a2bb1e36e97bf41c4cfaf08a0daba18e416f2d,
"lusearchFix.out116" digest(text) 0x9e45489061e59935888d888a3097de56a312cbbc,
"lusearchFix.out117" digest(text) 0x0b0931b182a4b4ca202f618e5f5919bb975a4efa,
"lusearchFix.out118" digest(text) 0xe8f5c6c4ad5c28c3225e46e4174d2abd07807909,
"lusearchFix.out119" digest(text) 0x417d22cfb5e84ad384ea240f8c9f7679f442e4b6,
"lusearchFix.out120" digest(text) 0xfc6e03608f467daeb511bb9dd5038a138b94a0c2,
"lusearchFix.out121" digest(text) 0x700fad68e5d1da858994f98d59072cc83cfa64cf,
"lusearchFix.out122" digest(text) 0x24f68fe26b4ed3d29327f12b23f79de483037f07,
"lusearchFix.out123" digest(text) 0x3132ba00e97302ab31df89a433105bc9d0f6144a,
"lusearchFix.out124" digest(text) 0x524ab3896247c732fc911e4dbd390a44cb51b884,
"lusearchFix.out125" digest(text) 0xa4050722025e7d843cf7d605e16dbb0a1eafd607,
"lusearchFix.out126" digest(text) 0xbe2a4e93788ac6f2c987cfa73517c5bfc75100ed,
"lusearchFix.out127" digest(text) 0xa89822e09ae7a1166cf050bc71fd4f2030c3d586;
description
short "A text search tool",
long "Text search of keywords over a corpus of data comprising the works of Shakespeare and the King James bible",
copyright "Apache Software Foundation, Apache license v2.0",
author "Lucene Project Management Committee",
license "Apache License, Version 2.0",
url "http://lucene.apache.org/",
version "2.4.1",
repeats "Each thread searches a large index for about 3500 distinct words",
threads "Explicitly multi-threaded, scaled to available processors";
--- libs/lucene/build.xml 2017-12-15 17:21:59.294405463 +1100
+++ bms/lusearch-fix/build-cmp.xml 2017-12-15 17:29:27.945796046 +1100
@@ -20,7 +20,10 @@
<property name="lib-build-top" value="${lib-build-dir}/lucene-${lib-version}"/>
- <target name="unpack" depends="untar"/>
+ <target name="unpack" depends="untar">
+ <patch patchfile="libs/${lib-name}/${lib-name}.patch" dir="${lib-build-dir}/lucene-${lib-version}" strip="0" ignorewhitespace="yes"/>
+ </target>
+
<target name="build">
<ant antfile="build.xml" target="jar-core" dir="${lib-build-top}" inheritall="false"/>
--- libs/lucene/lucene.patch 2017-12-15 17:54:32.680162962 +1100
+++ bms/lusearch-fix/lucene.patch 2017-12-15 17:54:28.000000000 +1100
@@ -0,0 +1,19 @@
+--- src/java/org/apache/lucene/queryParser/QueryParser.java 2009-03-03 04:10:43.000000000 +1100
++++ ../../QueryParser.java 2017-12-15 17:47:20.165965512 +1100
+@@ -506,8 +506,15 @@
+ protected Query getFieldQuery(String field, String queryText) throws ParseException {
+ // Use the analyzer to get all the tokens, and then build a TermQuery,
+ // PhraseQuery, or nothing based on the term count
++ // TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\
++ TokenStream source;
++ try {
++ source = analyzer.reusableTokenStream(field, new StringReader(queryText));
++ source.reset();
++ } catch (IOException e) {
++ source = analyzer.tokenStream(field, new StringReader(queryText));
++ }
+
+- TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));
+ List list = new ArrayList();
+ final org.apache.lucene.analysis.Token reusableToken = new org.apache.lucene.analysis.Token();
+ org.apache.lucene.analysis.Token nextToken;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Contributors:
* Apache Software Foundation
* Australian National University - adaptation to DaCapo test harness
*/
package org.dacapo.lusearchFix;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.FilterIndexReader;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.queryParser.QueryParser;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.ScoreDoc;
import org.apache.lucene.search.Searcher;
import org.apache.lucene.search.TopDocCollector;
/**
* Simple command-line based search demo.
*
* date: $Date: 2009-12-24 11:19:36 +1100 (Thu, 24 Dec 2009) $
* id: $Id: Search.java 738 2009-12-24 00:19:36Z steveb-oss $
*/
public class Search {
static final int MAX_DOCS_TO_COLLECT = 20;
public int completed = 0;
/**
* Use the norms from one field for all fields. Norms are read into memory,
* using a byte of memory per document per searched field. This can cause
* search of large collections with a large number of fields to run out of
* memory. If all of the fields contain only a single token, then the norms
* are all identical, then single norm vector may be shared.
*/
private static class OneNormsReader extends FilterIndexReader {
private String field;
public OneNormsReader(IndexReader in, String field) {
super(in);
this.field = field;
}
public byte[] norms(String field) throws IOException {
return in.norms(this.field);
}
}
public Search() {
}
/** Simple command-line based search demo. */
public void main(String[] args) throws Exception {
String usage = "Usage:\tjava org.dacapo.lusearchFix.Search [-index dir] [-field f] [-repeat n] [-queries file] [-raw] [-norms field] [-paging hitsPerPage]";
usage += "\n\tSpecify 'false' for hitsPerPage to use streaming instead of paging search.";
if (args.length > 0 && ("-h".equals(args[0]) || "-help".equals(args[0]))) {
System.out.println(usage);
System.exit(0);
}
String index = "index";
String field = "contents";
String queryBase = null;
int repeat = 0;
boolean raw = false;
String normsField = null;
int hitsPerPage = 10;
String outBase = null;
int threads = 1;
int totalQueries = 32;
for (int i = 0; i < args.length; i++) {
if ("-index".equals(args[i])) {
index = args[i + 1];
i++;
} else if ("-field".equals(args[i])) {
field = args[i + 1];
i++;
} else if ("-queries".equals(args[i])) {
queryBase = args[i + 1];
i++;
} else if ("-repeat".equals(args[i])) {
repeat = Integer.parseInt(args[i + 1]);
i++;
} else if ("-raw".equals(args[i])) {
raw = true;
} else if ("-norms".equals(args[i])) {
normsField = args[i + 1];
i++;
} else if ("-paging".equals(args[i])) {
hitsPerPage = Integer.parseInt(args[i + 1]);
i++;
} else if ("-output".equals(args[i])) {
outBase = args[i + 1];
i++;
} else if ("-threads".equals(args[i])) {
threads = Integer.parseInt(args[i + 1]);
i++;
} else if ("-totalqueries".equals(args[i])) {
totalQueries = Integer.parseInt(args[i + 1]);
i++;
}
}
completed = 0;
for (int j = 0; j < threads; j++) {
new QueryThread(this, "Query" + j, j, threads, totalQueries, index, outBase, queryBase, field, normsField, raw, hitsPerPage).start();
}
synchronized (this) {
while (completed != totalQueries) {
try {
this.wait();
} catch (InterruptedException e) {
}
}
}
}
class QueryThread extends Thread {
Search parent;
int id;
int threadCount;
int totalQueries;
String name;
String index;
String outBase;
String queryBase;
String field;
String normsField;
boolean raw;
int hitsPerPage;
public QueryThread(Search parent, String name, int id, int threadCount, int totalQueries, String index, String outBase, String queryBase, String field,
String normsField, boolean raw, int hitsPerPage) {
super(name);
this.parent = parent;
this.id = id;
this.threadCount = threadCount;
this.totalQueries = totalQueries;
this.name = name;
this.index = index;
this.outBase = outBase;
this.queryBase = queryBase;
this.field = field;
this.normsField = normsField;
this.raw = raw;
this.hitsPerPage = hitsPerPage;
}
public void run() {
try {
int count = totalQueries / threadCount + (id < (totalQueries % threadCount) ? 1 : 0);
for (int i = 0, queryId = id; i < count; i++, queryId += threadCount) {
// make and run query
new QueryProcessor(parent, name, queryId, index, outBase, queryBase, field, normsField, raw, hitsPerPage).run();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
public class QueryProcessor {
Search parent;
String field;
int hitsPerPage;