Skip to content

Conversation

@dhruvgoel92
Copy link
Contributor

Integrates PostgreSQL Fulltext Search backend into PHPBB Core.
http://tracker.phpbb.com/browse/PHPBB3-9730

PHPBB3-9730

@travisbot
Copy link

This pull request passes (merged cf858da into 4af503e).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should take this out I think.

@travisbot
Copy link

This pull request passes (merged 2700ebd4 into 4af503e).

@travisbot
Copy link

This pull request passes (merged dedc9ba3 into 4af503e).

@travisbot
Copy link

This pull request passes (merged 28a873cd into 4af503e).

@travisbot
Copy link

This pull request passes (merged 0ecff724 into 4af503e).

@travisbot
Copy link

This pull request passes (merged 61871a23 into 4af503e).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message probably should be "incompatible database (engine)" instead of "version".

@travisbot
Copy link

This pull request passes (merged b9a70250 into 4af503e).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can phpbb_version_compare be used here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean, abused?

@nickvergessen
Copy link
Contributor

I don't really like the html in https://github.com/phpbb/phpbb3/pull/832/files#L0R777
maybe this can be moved to a file and the function just returns the file name, like in the captcha system?!

@dhruvgoel92
Copy link
Contributor Author

@nickvergessen yeah the html does look a little bad, we can move it to a new file.

@travisbot
Copy link

This pull request passes (merged 1edfeeb4 into 4af503e).

1 similar comment
@travisbot
Copy link

This pull request passes (merged 1edfeeb4 into 4af503e).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All properties should have access control specifiers (private/public).

@p
Copy link
Contributor

p commented Jun 19, 2012

In order for this pr to be merged, search query display needs to be fixed. Whatever was entered by the user for the search query should be displayed in the search box. When I tested this last + were added to words and when nothing was found the query was cleared.

p and others added 22 commits July 5, 2012 21:10
Fixes braces in fulltext_postgres.php to comply with phpbb conventions.

PHPBB3-9730
Some changes in code to get it work against current develop.
PosgreSQL Fulltext search works for new install now.

PHPBB3-9730
config entries are now added by database_update.php as well.
PostgreSQL will work during update too.

PHPBB3-9730
Changes to comply with other backend conventions. include $user as global
variable to access it inside init();

PHPBB3-9730
removes backward compatibility before PostgreSQL ver 8.3
if version is before 8.3 displays error.

PHPBB3-9730
Blank array is assigned to stats incase pgsql fulltext
search backend is not compatible

PHPBB3-9730
Variable name used is now tsearch_usable instead of tsearch_builtin
to reflect its actual purpose.

PHPBB3-9730
Use phpBB's built in function for checking PCRE lib support.

PHPBB3-9730
Remove the usage of mbstring regex engine when PCRE does not support UTF8
since its a requirement for phpbb 3.1

PHPBB3-9730
…arch

Language is changed according to the current PostgreSQL documentation.

PHPBB3-9730
PCRE UTF8 support is already checked globally. adds an option of
pgsql version to acp.

PHPBB3-9730
Language key name not incompatible_database instead of version which
was misleading

PHPBB3-9730
version_compare is used for version comparision and pgsql version is now
a global variable that is displayed in the acp too.

PHPBB3-9730
Unused Code for phrase search removed as pgsql doesnt support it. An added
message is displayed if user tries to perform exact phrase search.

PHPBB3-9730
Docblocks are added to the functions of this search backend.

PHPBB3-9730
adds proper spaces after control keywords and comment symbol

PHPBB3-9730
In database_update.php each config value of postgres fulltext search is
first checked whether it already exists or not and then added.

PHPBB3-9730
@travisbot
Copy link

This pull request passes (merged 6bf01e31 into d9fd0cc).

@dhruvgoel92
Copy link
Contributor Author

Fixed everything.

function to return the value of the the private property phrase_search

PHPBB3-9730
@travisbot
Copy link

This pull request passes (merged 70a0cae into d9fd0cc).

p added a commit to p/phpbb3 that referenced this pull request Jul 7, 2012
…arch' into develop

* dhruvgoel92/feature/postgresql-fulltext-search: (28 commits)
  [feature/postgresql-fulltext-search] supports_phrase_search function
  [feature/postgresql-fulltext-search] use proper variable name
  [feature/postgresql-fulltext-search] each config is checked if it is set
  [feature/postgresql-fulltext-search] fix formatting
  [feature/postgresql-fulltext-search] add docblocks to functions
  [feature/postgresql-fulltext-search] remove phrase search code
  [feature/postgresql-fulltext-search] define access control specifiers
  [feature/postgresql-fulltext-search] use version_compare
  [feature/postgresql-fulltext-search] fix language key
  [feature/postgresql-fulltext-search] remove Readme
  [feature/postgresql-fulltext-search] removes pcre check
  [feature/postgresql-fulltext-search] fix language tsearch2 to text search
  [feature/postgresql-fulltext-search] remove mbstring support
  [feature/postgresql-fulltext-search] change language for pgsql < 8.3
  [feature/postgresql-fulltext-search] use phpbb_pcre_utf8_support()
  [feature/postgresql-fulltext-search] fix variable name
  [feature/postgresql-fulltext-search] Fix version comparison for 9.0+.
  [feature/postgresql-fulltext-search] fixing license
  [feature/postgresql-fulltext-search] assign empty stats
  [feature/postgresql-fulltext-search] remove backward compatibility
  ...
@p p merged commit 70a0cae into phpbb:develop Jul 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants