lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sokolov <soko...@ifactory.com>
Subject Re: new AutomatonQuery(RunAutomaton) ?
Date Wed, 31 Aug 2011 21:49:47 GMT
Can you clone the AutomatonQuery and combine it with a filter returning 
a single document?  There is code that does something like this in 
LUCENE-3318.  That way you can test if the automaton matches a document 
without the need to tease it apart.

-Mike


On 08/31/2011 04:32 PM, eks dev wrote:
> bytes are good, I am in byte range on this data, and "even simpler" is good :)
>
> It is simple, I just need to know if  this automaton I used for
> AutomatonQuery accepts one stored field, so yes it is the same
> information as in Term, but I need to run over it once more because my
> query is not filtering on AutomatonQuery
>
> ((AutomatonQuery(A)) OR (OtherQuery) )+
>
> So I get back documents not matched by this Automaton and I do not
> know which ones are there due to the "OtherQuery"
>
> running search in 2 passes, with and without automaton  is not practicable
>
>
>
>
> On Wed, Aug 31, 2011 at 8:45 PM, Robert Muir<rcmuir@gmail.com>  wrote:
>    
>> On Wed, Aug 31, 2011 at 2:37 PM, eks dev<eksdev@yahoo.co.uk>  wrote:
>>      
>>> Keeping AutomatonQuery around came to me as an option, but do not
>>> forget, I need Automaton (RunAutomaton) for post processing... There
>>> is no way to get Automaton back from the AutomatonQuery?
>>>
>>>        
>> The compiled automaton is not always a RunAutomaton, sometimes its
>> internal representation is something even simpler :)
>> Additionally, when it is a RunAutomaton, its a UTF-8 one, for
>> operating directly on bytes...
>>
>> Can you describe a little bit about what 'post processing' you need to
>> do? I imagine its post processing on something other than the terms?
>>
>> --
>> lucidimagination.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>>      
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message