<commit_before>package fi.otavanopisto.kuntaapi.server.index;

public class IndexableFile implements Indexable {
  
  @Field (index = "not_analyzed", store = true)
  private String fileId;
  
  @Field (index = "not_analyzed", store = true)
  private String organizationId;
  
  @Field (type = "attachment") 
  private IndexableAttachment data;

  @Override
  public String getId() {
    return String.format("%s", fileId);
  }

  @Override
  public String getType() {
    return "file";
  }
  
  public void setFileId(String fileId) {
    this.fileId = fileId;
  }
  
  public String getFileId() {
    return fileId;
  }

  public String getPageId() {
    return fileId;
  }

  public void setPageId(String pageId) {
    this.fileId = pageId;
  }
  
  public String getOrganizationId() {
    return organizationId;
  }

  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }
<commit_msg>Fixed pageId <> fileId confilict in IndexableFile class<commit_after>package fi.otavanopisto.kuntaapi.server.index;

public class IndexableFile implements Indexable {
  
  @Field (index = "not_analyzed", store = true)
  private String fileId;

  @Field (index = "not_analyzed", store = true)
  private String pageId;
  
  @Field (index = "not_analyzed", store = true)
  private String organizationId;
  
  @Field (type = "attachment") 
  private IndexableAttachment data;

  @Override
  public String getId() {
    return String.format("%s", fileId);
  }

  @Override
  public String getType() {
    return "file";
  }
  
  public void setFileId(String fileId) {
    this.fileId = fileId;
  }
  
  public String getFileId() {
    return fileId;
  }

  public String getPageId() {
    return pageId;
  }

  public void setPageId(String pageId) {
    this.pageId = pageId;
  }
  
  public String getOrganizationId() {
    return organizationId;
  }

  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }

{'fraction_non_alphanumeric': 0.09718026183282981, 'fraction_numerical': 0.0, 'mean_word_length': 3.425389755011136, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1374367', 'n_tokens_mistral': 648, 'n_tokens_neox': 633, 'n_words': 164}