Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created December 8, 2021 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/314e6feca7c7a11fad146ef0c8e76462 to your computer and use it in GitHub Desktop.
Save Hkazanci93/314e6feca7c7a11fad146ef0c8e76462 to your computer and use it in GitHub Desktop.
package com.yourcompany.domain;
@Document
public class Company {
@Id private String id;
@Searchable private String name;
@Indexed private Point location;
@Indexed private Set<String> tags = new HashSet<String>();
@Indexed private Integer numberOfEmployees;
@Indexed private Integer yearFounded;
private String url;
private boolean publiclyListed;
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment