cancel
Showing results for 
Search instead for 
Did you mean: 

Searching AVM Lucene Index outside Alfresco

sbzoom
Champ in-the-making
Champ in-the-making
Hello.
I would like to be able to search the Lucene index for a particular AVM store outside of Alfresco.  I have written some code that uses the Webservices API and it actually works quite well.  The problem is that my Alfresco installation has 80 web projects in it and the site we are developing will get a lot of traffic.  So I do not want to expose our CMS to this kind of load.

I see two options from here:

1) Create a separate instance of Alfresco for this website.
2) Push the lucene index for alf_data/AVM/mywebsite/ to the webserver where I can write my own lucene queries against it.

I kind of like the idea of option 2, I am just not sure where to start.

  - What does the index look like?
  - What terms can I use?
  - Why are there multiple directories in the index?
  - Are they all used?
  - Is one more current than the others?

I am starting to look at the code in Subversion that deals with the indexes, but it would be great to get a head start.

Thanks.


Charlie
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

See the docs on the wiki.

We have separate folders for transactions - which are then merged into the index.
You could take a copy of the index and use the IndexInfo class to access the index.
See the main method in IndexInfo.

As to the fields available they are on the wiki.

Andy