-
Notifications
You must be signed in to change notification settings - Fork 872
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
Lucene not working correctly with "Cluster:xx" query #6594
Comments
@marcelalburg What do you mean by
|
Hey, sorry maybe i use the wrong expression to describe that. in the future, i'll use something like this:
Thanks |
@marcelalburg I think it will not work. Indexes works at class level not cluster level. |
Mhh ok, then i will use a manual index for this. Maybe you could answer me one more question. If i add multiple times the same value with the same vertex (#nn:n) to a manual index. is there any problem about that ? Thanks for your answer |
@marcelalburg no problem. You will get multiple times the same vertex in the results set. Can you explain a little bit you use case maybe i can help more Thanks |
Hi @maggiolo00 indexes arent supported for Clusters? This would mean that the concept of clustering and distribution is uncomplete?! When I understand correctly then clustering is a mechanism of grouping but the set are still classes so mechanism of look up is missing. |
The same issue is that @maggiolo00 whats the roadmap for the clustering strategy ? |
Hello, i try to explain my usecase: I've following classes: Continent Every Class has different properties but min. a "name" property. and i like to create an AutoComplete/Suggest Lucene index on this field and all classes (this works). But i need to query them now. I hope this explained it a little bit. Thanks Code Example for one "class":
|
Hello, i found an other solution for my problem. i create a base Class "Searchable" wich one contains all fields for searching. On this class, i create my fulltext lucene index. all other classes (see above) extends this "Searchable" class. Now, it's possible to query just the "Searchable" class with the LUCENE Query. Thanks |
Hi @marcelalburg your solution is no answer to your issue. Its still an issue. Please reopen or I will open a new one because it will address me soon. Thanks. |
@maggiolo00 can you answer my questions? Thanks. |
Hi, on the next 2.2.16 version Lucene indexes will contain additional metadata fields _CLUSTER and _CLASS. So a query could be partitioned by cluster:
|
You closed the issue before it released. Awesome! |
What do you mean? |
@robfrank the current release is 2.2.15 you closed the issue before 2.2.16 was released. |
Can you test with a snapshot? I mean 2.2.16-SNAPSHOT. |
this feature is included in 2.2.16. I close it, feel free to open a new issue relative to the feature as it is implemented. |
OrientDB Version, operating system, or hardware.
Operating System
Expected behavior and actual behavior
i've created an lucene index with following java:
i insert this test data:
[{"name_de": "nord"},{"name_de":"nördlich"}]
Steps to reproduce the problem
My select query:
select * from Region where [name_de] LUCENE 'nor*'
returns the two rows and this is what i expect.
For the future, i'd like to query two or more classes with one query. i figure out, this is possible via "cluster:". my query is now:
select * from cluster:Region where [name_de] LUCENE 'nor*'
and this returns just one row -> "nord".
Is that a valid behaviour ?
Thanks
Marcel Alburg
The text was updated successfully, but these errors were encountered: