Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Couple changes with the Test person
Browse files Browse the repository at this point in the history
  • Loading branch information
chrim committed Oct 15, 2010
1 parent c0aa991 commit 01894e1
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/main/java/gov/nysenate/opendirectory/ldap/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public static void main(String[] args) throws NamingException {
localserver = new CommonsHttpSolrServer("http://localhost:8080/solr/");

SolrServer server = localserver;
/*Person test_p = new Person();

Person test_p = new Person();

test_p.setEmail("test_email@chrim.com");
test_p.setFirstName("test");
Expand All @@ -53,26 +53,17 @@ public static void main(String[] args) throws NamingException {
test_p.setPhone("123-333-1111");
test_p.setState("NY");
test_p.setTitle("Manager");
test_p.setUid("123");
test_p.setUid("1");

server.addBean(test_p);
server.commit();
*/


SolrQuery query = new SolrQuery();
query.setQuery("*:*");

QueryResponse rsp = server.query(query);


/*SolrDocumentList docs = rsp.getResults();
while(docs.get(3).iterator().hasNext())
{
docs.get(3).iterator().
}
System.out.println(docs.get(3).size());
*/

ArrayList<Person> beans = (ArrayList<Person>)rsp.getBeans(Person.class);

for(Person p : beans) {
Expand Down

0 comments on commit 01894e1

Please sign in to comment.