Skip to content
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

How can I search with 2 letters? #25021

Closed
justlomo opened this issue Jun 8, 2016 · 3 comments · May be fixed by #41328
Closed

How can I search with 2 letters? #25021

justlomo opened this issue Jun 8, 2016 · 3 comments · May be fixed by #41328

Comments

@justlomo
Copy link

justlomo commented Jun 8, 2016

Steps to reproduce

  1. searching files with 2 letters
    2.
    3.

Expected behaviour

searching files with 2 letters

Actual behaviour

only can search with 3 letters

Server configuration

Operating system: Ubuntu 15.10

Web server: apache2

Database: mysql

PHP version: 5.5

ownCloud version: (see ownCloud admin page) 8.2.5

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: owncloud.org

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:
files
activity
gallery

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

Enabled:
  - activity: 2.1.4
  - files: 1.2.1
  - files_pdfviewer: 0.7.1
  - files_sharing: 0.7.0
  - files_texteditor: 2.0
  - files_trashbin: 0.7.0
  - files_versions: 1.1.0
  - files_videoviewer: 0.1.3
  - firstrunwizard: 1.1
  - gallery: 14.2.0
  - notifications: 0.1.0
  - provisioning_api: 0.3.0
  - templateeditor: 0.1
  - updater: 0.6
Disabled:
  - encryption
  - external
  - files_external
  - user_external
  - user_ldap

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

    "system": {
        "instanceid": "ocmx3c7cr1jw",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.38.107"
        ],
        "datadirectory": "\/home\/data",
        "overwrite.cli.url": "http:\/\/192.168.38.107",
        "dbtype": "mysql",
        "version": "8.2.5.2",
        "dbname": "doncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true
    }
}

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Chrome 50

Operating system:
Windows 7 64bit

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

when i want to search some files,
I have to type more 3 letters.
but I want to search with 2 letters.
Can I do it?
Someone help me please.

@PVince81
Copy link
Contributor

PVince81 commented Jun 8, 2016

You can't, 3 characters is the minimum. The reason might be to avoid overloading the search engine in case there are too many results. @butonic @georgehrke

Slightly related: #9916

@butonic
Copy link
Member

butonic commented Jun 8, 2016

@PVince81 is correct. The server side search is only executed with more than 2 letters: https://github.com/owncloud/core/blob/master/core/search/js/search.js#L325

@justlomo colud you try setting the 2 to a 1 or even 0 and report back on the server load? I am asking because we are meanwhile limiting the query results and overloading might not be that much of a problem any longer.

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants