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

Allow field names for manual index #5185

Closed
robfrank opened this issue Oct 21, 2015 · 2 comments
Closed

Allow field names for manual index #5185

robfrank opened this issue Oct 21, 2015 · 2 comments
Assignees
Milestone

Comments

@robfrank
Copy link
Contributor

From @Ziink on September 24, 2015 16:26

Enhancement request.

If we can label the fields making up the key in a manual lucene index, it will make the search capability more versatile.

See Issue 27

Copied from original issue: orientechnologies/orientdb-lucene#72

@robfrank robfrank self-assigned this Oct 21, 2015
@robfrank
Copy link
Contributor Author

robfrank commented Nov 2, 2015

Could you elaborate more your request? Maybe writing down a pseudo-SQL or Java statement and expected results. Thanks

@Ziink
Copy link

Ziink commented Nov 2, 2015

Suggested use from @wouterv initial issue

create index index_name ('id','name') FULLTEXT ENGINE LUCENE STRING, STRING

Then be able to insert like

insert into index:index_name (id, name, rid) values (1, 'jeff', #45:0)
insert into index:index_name (id, name, rid) values (1, 'Luca', #45:0)
insert into index:index_name (id, name, rid) values (2, 'Luca', #45:1)

and then query stuff like

select * from index:index_name where [id, name] LUCENE "(id:1 OR name:Luca)"

@robfrank robfrank added this to the 2.2 milestone Nov 9, 2015
@lvca lvca modified the milestones: 3.0, 2.2 Nov 15, 2015
@lvca lvca modified the milestones: 3.0.0, 3.0.x Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants