-
Notifications
You must be signed in to change notification settings - Fork 870
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
manual index bug #6457
Comments
did you try? |
sorry was't documented on multiple fields in manual index. Since it's manual and there aren't properties the engine generates the name k1,k2,k3..kN
See |
@publicocean0 the exception that you get is at parsing time because the key is mandatory in index: syntax |
CREATE INDEX Manual11 FULLTEXT ENGINE LUCENE long , long ,long ,long Inserted record '{rid:#30:3,key:[4]}' in 0,455000 sec(s). Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select from index:Manual11 where key LUCENE "(k0:1)" Error: java.lang.NumberFormatException: For input string: "(k0:1)" |
CREATE INDEX Manual13 FULLTEXT ENGINE LUCENE string , string , string , string Creating index... Index created successfully Inserted record '{rid:#30:3,key:[4]}' in 0,327000 sec(s). select from index:Manual13 where key LUCENE "k0:'a'" 0 item(s) found. Query executed in 0.227 sec(s). OCompositeKey consider string entirely |
the first one is a type problem. With lucene we support strings or list of strings the second one you are not taking in account the Analyzer. a is a stop word that is removed in indexing phase. insert into index:Manual13 (key, rid) values(['Test','b','c','d'],#30:3) select from index:Manual13 where key LUCENE "(k0:Test)" |
@publicocean0 |
select from index:Manual13 where key LUCENE "k0:Test" Error: java.lang.NoClassDefFoundError: com/orientechnologies/orient/core/serialization/OBase64Utils Error: java.lang.ClassNotFoundException: com.orientechnologies.orient.core.serialization.OBase64Utils |
reading in the log so it is trying to parsing as number "(k0:1)" |
tested without problem in 2.2.5 plocal and remote with the index created in this way
|
i have 2.2.6. i will try to recompile.... |
Btw you get this `Error: java.lang.NumberFormatException: For input string: "(k0:1)"``` from the query engine. This is an integration problem. |
same error after recompilation boh select from index:Manual13 where key LUCENE "k0:Test" Error: java.lang.NoClassDefFoundError: com/orientechnologies/orient/core/serialization/OBase64Utils Error: java.lang.ClassNotFoundException: com.orientechnologies.orient.core.serialization.OBase64Utils |
ok now it works in 2.6 ... a problem with console. restarting console it works. It remains the problems with key for data type not string. |
@publicocean0 |
ok it is not urgent , i passed to another task in the while, fortunately i have a pile of tasks to do :) |
A similar problem is also in automatic lucene. I have a property long but when i make query no field is found |
i guess, the code is the same. |
@publicocean0 |
Impossible , my query in index needs to create a expression with indexed fields. It is a tipical case in which need lucene. In addition in future i need to search inside properties (embedded map defined by user on the fly). Unfortunatelly, indexes used as projections on single fixed fields are just a sub case of all possible ones. |
OrientDB Version, operating system, or hardware.
Operating System
[x ] Linux
MacOSX
Windows
Other Unix
Other, name?
INSERT INTO INDEX:Manual (key, rid) VALUES(['Enrico', 'Rome'], Export of database [moved] #5:0)
orientdb> SELECT FROM INDEX:Manual WHERE key LUCENE "Enrico"
if want search for prop 1 and not for prop2 how to do?
select from index:Manual34 where [prop1, prop2] LUCENE "(prop1:foo AND prop2:bar)"
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: 'Key' field is required for queries against indexes
it seams there is no way for finding a specific property of schema
The text was updated successfully, but these errors were encountered: