incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron McCurry <amccu...@gmail.com>
Subject Re: Querying a record while it's in memory
Date Wed, 09 Oct 2013 02:17:41 GMT
On Tue, Oct 8, 2013 at 4:30 PM, Colton McInroy <colton@dosarrest.com> wrote:

> Hmm... I've been trying to do this without any luck so far.
>
> I cannot find where the objects Field, and Analyzer are declared... I
> tried adding all of the blur libs as well as lucene analyzer common,
> queries, and queryparser.
>

The Field class is a Lucene class, as well as the Analyzer class.  The
FieldManager class is in the blur-query project, and the TableContext is in
the blur-core project.


>
> Can you perhaps ellaborate a bit more on how to accomplish searching a
> single record in memory.


I will see if I can come up with an example of something simple sometime
tomorrow.

Thanks,
Aaron


>
>
> Thanks,
> Colton McInroy
>
>  * Director of Security Engineering
>
>
> Phone
> (Toll Free)
> _US_    (888)-818-1344 Press 2
> _UK_    0-800-635-0551 Press 2
>
> My Extension    101
> 24/7 Support    support@dosarrest.com <mailto:support@dosarrest.com>
> Email   colton@dosarrest.com <mailto:colton@dosarrest.com>
> Website         http://www.dosarrest.com
>
> On 10/4/2013 5:04 AM, Aaron McCurry wrote:
>
>> Are you talking the MemoryIndex in Lucene?  If so, no Blur doesn't have
>> anything like that built in.  However you could use the Analyzer and
>> FieldManager from Blur to help create a similar behavior.
>>
>> TableContext context = TableContext.create(**TableDescriptor);
>> FieldManager fieldManager = context.getFieldManager();
>> List<Field> fields = fieldManager.getField(rowid,**record);
>> Analyzer analyzerForWriter =  fieldManager.**getAnalyzerForIndex();
>> Analyzer analyzerForQuery =  fieldManager.**getAnalyzerForQuery();
>>
>> Aaron
>>
>>
>>
>> On Thu, Oct 3, 2013 at 9:58 AM, Colton McInroy <colton@dosarrest.com>
>> wrote:
>>
>>  Hello,
>>>
>>>      I am wondering if it is possible to run a query against a single
>>> record stored in memory? and if so can you give me an example? While
>>> parsing and entering log entries into Blur, I would like to be able to
>>> pass
>>> that record over to a thread which analyzes the record with a query which
>>> may trigger some kind of action. I used to be able to do this with
>>> lucene... hmm... I was going to provide some example code, but I cannot
>>> seem to find it.
>>>
>>> --
>>> Thanks,
>>> Colton McInroy
>>>
>>>   * Director of Security Engineering
>>>
>>>
>>> Phone
>>> (Toll Free)
>>> _US_    (888)-818-1344 Press 2
>>> _UK_    0-800-635-0551 Press 2
>>>
>>> My Extension    101
>>> 24/7 Support    support@dosarrest.com <mailto:support@dosarrest.com>
>>> Email   colton@dosarrest.com <mailto:colton@dosarrest.com>
>>> Website         http://www.dosarrest.com
>>>
>>>
>>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message