-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Search Engine (issue 535) #97
Open
osarrat
wants to merge
36
commits into
sigmah-dev:master
Choose a base branch
from
halfcurry:aditya
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
3916bcd
Added search bar UI
halfcurry 17b6d5f
Worked on SearchResults classes
halfcurry e052d70
New tab opens but is Singleton
halfcurry e3a44e5
Work on Search results page title
halfcurry 695f257
Multiple tabs open but bugs exist
halfcurry 5f749b4
Attempt at connecting to Solr Server
halfcurry 883460a
Minor changes to the search classes
halfcurry 34597da
Added an index button to do full import
halfcurry c08b492
Attempt at presentation of results on screen
halfcurry cfa0418
Results rendering but views not changing
halfcurry 882cc0e
Fixed Search results view changing issue and cleaned code
halfcurry 8dd81b4
[Issue #535]: Attempt at opening a project on clicking project search…
halfcurry b533347
[Issue #535]:Contacts, OrgUnits open on clicking results
halfcurry 0fc5440
[Issue 535]: Made search results pretty
halfcurry 049a3ee
[Issue 535]:Added search filtering and resolved first-time connection…
halfcurry 14db114
[Issue #535]:Added icons to differentiate between types of results
halfcurry 9d15b0a
[Issue #535]:Added filtering (using existing permissions of user) for…
halfcurry d3e1fb3
[Issue #535]: Contacts and OrgUnits permmission filtering and cleanin…
halfcurry dd095d6
[Issue #535]: Added an auto full-data import indexing job
halfcurry 0604656
[Issue #535]: Modified pom.xml to include global sigmah core url prop…
halfcurry 1fd1e1c
[Issue #535]:Added solr sonfig files
halfcurry 44ef000
[Issue #535]: Added a panel in admin settings for solr settings
halfcurry bec9e80
[Issue #535]:Added a column to table organization to store and use so…
halfcurry ae9af1a
[Issue #535]:Multiple failed attempts at querying the database for a …
halfcurry b235197
[Issue #535]:Added File indexing capability via existing command patt…
halfcurry 9b2bdd4
[Issue #535]:Small error in last commit
halfcurry 1f7d1f3
[Issue #535]:Modified automatic and manual indexing to include files …
halfcurry 035c728
[Issue #535]:Presentation of files in search results
halfcurry 05abe0b
[Issue #535]:Made UI changes and very rudimentary files results filte…
halfcurry fb2f93e
[Issue #535]:Multiple changes to UIs of search bar, results and admin
halfcurry 39b19a1
[Issue #535]:Added proper errror messages for different cases
halfcurry 6b2ed5f
[Issue #535]:Code cleanup #1
halfcurry 4999b3a
[Issue #535]:Code cleanup #2, added comments
halfcurry 8f9281a
[Issue #535]:Added Global Permission SEARCH for viewing search bar
halfcurry 9df59b2
[Issue #535]:Added a search button image
halfcurry 4e9ea32
[Issue #535]:Final few changes and code cleanup
halfcurry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,7 @@ | |
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> | ||
<hibernate.connection.driver_class>org.postgresql.Driver</hibernate.connection.driver_class> | ||
<hibernate.hbm2ddl.auto>update</hibernate.hbm2ddl.auto> | ||
<hibernate.show_sql>true</hibernate.show_sql> | ||
<hibernate.show_sql>false</hibernate.show_sql> | ||
<hibernate.format_sql>true</hibernate.format_sql> | ||
<hibernate.connection.url>${sigmah.database.url}</hibernate.connection.url> | ||
<hibernate.connection.username>${sigmah.database.user}</hibernate.connection.username> | ||
|
@@ -551,6 +551,15 @@ | |
<artifactId>mail</artifactId> | ||
<version>1.4.5</version> | ||
</dependency> | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please ignore any local changes I have made. The only one which matters is this solr dependency. |
||
<!-- SolrJ --> | ||
<dependency> | ||
<artifactId>solr-solrj</artifactId> | ||
<groupId>org.apache.solr</groupId> | ||
<version>6.5.0</version> | ||
<type>jar</type> | ||
<scope>compile</scope> | ||
</dependency> | ||
|
||
<!-- MISC --> | ||
<dependency> | ||
|
@@ -1039,6 +1048,13 @@ | |
<id>sigmah-dev</id> | ||
<properties> | ||
|
||
<!-- Overrride properties for your local profile here... --> | ||
<sigmah.database.url>jdbc:postgresql://localhost:5432/sigmah</sigmah.database.url> | ||
<sigmah.database.user>sigmah</sigmah.database.user> | ||
<sigmah.database.password>hamsig</sigmah.database.password> | ||
<files.repository.name>/home/sigmah_dev</files.repository.name> | ||
<archives.repository.name>/home/sigmah_dev/archives</archives.repository.name> | ||
|
||
<gwt.style>PRETTY</gwt.style> | ||
|
||
<!-- Logger properties. --> | ||
|
@@ -1047,7 +1063,7 @@ | |
|
||
<!-- Hibernate properties. --> | ||
|
||
<hibernate.show_sql>true</hibernate.show_sql> | ||
<hibernate.show_sql>false</hibernate.show_sql> | ||
|
||
<!-- Mailer properties. --> | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.sigmah.client.search; | ||
|
||
import java.util.ArrayList; | ||
|
||
import org.sigmah.shared.dto.search.SearchResultsDTO; | ||
import com.google.gwt.user.client.rpc.RemoteService; | ||
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; | ||
|
||
@RemoteServiceRelativePath("search") | ||
public interface SearchService extends RemoteService { | ||
//TODO Add method stubs here | ||
ArrayList<SearchResultsDTO> search(String searchStr); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/sigmah/client/search/SearchServiceAsync.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.sigmah.client.search; | ||
|
||
import java.util.ArrayList; | ||
|
||
import org.sigmah.shared.dto.search.SearchResultsDTO; | ||
import com.google.gwt.user.client.rpc.AsyncCallback; | ||
|
||
|
||
public interface SearchServiceAsync { | ||
|
||
public void search(String searchStr, AsyncCallback<ArrayList<SearchResultsDTO>> callback); | ||
} |
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 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My two cents about this: instead of modifying the common pom.xml file, you should rather maintain your own Maven settings.xml file as very recently documented here: http://wiki.sigmah.org/doku.php?id=contributorguide:preparebuildenvironment#step_3your_first_build
Enjoy !