Hi again,

I think, after looking at this for a while, that the index select by the 
query planner is the unique index created for the same field and the error 
is the result of trying to deal with that index as a Lucene index.

If that is true then the LUCENE keyword is being ignored in the "index 
selection" phase.

Perhaps I'll just create and Issue on github and leave this here for others 
that come across this problem.

Regards,
 -Stefan


On Saturday, August 8, 2015 at 11:41:57 AM UTC, [email protected] 
wrote:
>
> Hi,
>
> We have been using Lucene search in 2.0.* and it's been working well 
> (thank you).
>
> Now I'm upgrading to 2.1 (GA) and Lucene has stopped working, at least in 
> the way it did.
>
> 1. Selecting directly from an index works just fine: 
>
> SELECT * FROM index:ASInternal_eid WHERE key LUCENE "entity_id:plan"
>
>  
> 2. Selecting from the Class returns an error:
>
> SELECT * FROM ASInternal WHERE entity_id LUCENE "plan"
>
>
> java.lang.ClassCastException: 
> com.orientechnologies.lucene.collections.OFullTextCompositeKey cannot be 
> cast to java.lang.String
> at 
> com.orientechnologies.common.serialization.types.OStringSerializer.preprocess(OStringSerializer.java:32)
> at 
> com.orientechnologies.orient.core.index.hashindex.local.OLocalHashTable.get(OLocalHashTable.java:320)
> at 
> com.orientechnologies.orient.core.index.engine.OHashTableIndexEngine.get(OHashTableIndexEngine.java:158)
> at 
> com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:63)
> at 
> com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:45)
> at 
> com.orientechnologies.orient.core.index.OIndexAbstractDelegate.get(OIndexAbstractDelegate.java:59)
> at 
> com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:236)
> at 
> com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:41)
> at 
> com.orientechnologies.lucene.operator.OLuceneTextOperator.executeIndexQuery(OLuceneTextOperator.java:51)
>
>
> Has anyone else experienced this here?
>
> I also got quite curious  when I saw OLuceneFacetManager and wonder if 
> it's working already and if any documentation is available at this point :).
>
> Thank you,
>  -Stefan
>
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to