Skip to content

Implementation of a system for building an "Inverted index" data structure, as well as systems for using this data structure.

Notifications You must be signed in to change notification settings

ellyzaveta/course-work-pc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inverted index

Implementation of a system for building an "Inverted index" data structure, as well as systems for using this data structure.

To run the project

Running the project using Intelij Idea:

  • Clone a repository from GitHub:


  • Opening the project in IntelliJ IDEA:

    • IntelliJ IDEA will automatically detect that this is a Maven project and offer to import dependencies.
    • Click Enable Auto-Import to automatically update Maven dependencies when the pom.xml file changes.

  • Project configuration:

    • Make sure you have JDK and Maven installed. In IntelliJ IDEA, go to File > Project Structure and select the required JDK version and Maven settings.
    • In IntelliJ IDEA, go to View > Tool Windows > Maven and select Reimport All Maven Projects to ensure that all dependencies have been imported correctly.

  • Project launch:


    • To run the project in Client-Server mode:


      • Go to the server > src > main > resources > application.properties and specify the path of the directory with the input files under the directory.path property and the server port under the server.port property.
      • Go to the client > src > main > resources > application.properties and specify the host under the server.host property and the server port under the server.port property (the server port in the application.properties files for the server and client must match).
      • Go to server > src > main > java > com.kpi.server > ServerApplication and run the module by clicking the green triangle.
      • Go to client > src > main > java > com.kpi.client > ClientApplication and run the module by clicking the green triangle.

    • To run project in Performance Comparison mode:


      • Go to performancecomparison > src > main >resources > application.properties and specify the list of input file paths of different lengths under the performance.testdata.paths property and the server port under the server.port property.
      • Go to performancecomparison > src > main > java > com.kpi.performancecomparison > PerformanceComparisonApplication and run the module by clicking the green triangle.
      • After launching the application, open a browser and go to the address "http://localhost:{port}" (port is the server.port you defined in application.properties).