This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
try { | |
StringReader inputText = new StringReader(args[0]); | |
TokenizerFactory tkf = new WhitespaceTokenizerFactory(); | |
Tokenizer tkz = tkf.create(inputText); | |
LowerCaseFilterFactory lcf = new LowerCaseFilterFactory(); | |
TokenStream lcts = lcf.create(tkz); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
try { | |
StringReader inputText = new StringReader("RUNNING runnable"); | |
Map<String, String> tkargs = new HashMap<String, String>(); | |
tkargs.put("luceneMatchVersion", "LUCENE_33"); | |
TokenizerFactory tkf = new WhitespaceTokenizerFactory(); | |
tkf.init(tkargs); | |
Tokenizer tkz = tkf.create(inputText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This class uses Solr 1.4 classes to load its schema.xml and run input text through the analyzers defined | |
in it. | |
*/ | |
public class SchemaTester { | |
public static void main(String[] args) { | |
try { | |
InputStream solrCfgIs = new FileInputStream( | |
"solr/conf/solrconfig.xml"); | |
SolrConfig solrConfig = new SolrConfig(null, solrCfgIs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class uses Solr 3.3.x classes to load schema.xml and runs input text through the analyzers | |
* defined in it. | |
*/ | |
public class SchemaTester { | |
public static void main(String[] args) { | |
try { | |
InputSource solrCfgIs = new InputSource( | |
new FileReader("solr/conf/solrconfig.xml")); | |
SolrConfig solrConfig = new SolrConfig(null, solrCfgIs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | |
<title>Backbone.js example</title> | |
<link rel="stylesheet" type="text/css" href="css/sunny/jqueryui.min.css"/> | |
</head> | |
<body> | |
<!-- "slider" is a jquery slider --> | |
<div id="slider"></div> |