Freigeben über


POC - Part 1: Search - Mapping the Content Folder

Ready to start indexing some files? So am I!

But we are not doing that this post. Sorry. Life can be full of disappointment. But not to worry.

At this point in the journey we need to tell the VM where to find the files we want to index (we are indexed files for this first iteration). Eventually we will tell the connector, but one step at a time. Let's copy some content into a folder on our local machine, make it accessible by the VM and index it. Sounds simple? It is...but we'll index the content in the next post.

Pre-prep

  1. Go get some documents. In my case I pulled some documents from the web using Bing for keyword neurobiology (98 all told in various formats).
  2. Copy the files into a local folder (I created a folder named neurobiology-files under fast-technet-files). You will map the folder onto the VM in a later step.

The Short Version

  1. Start VirtualBox. Do not start the VM.
  2. If you took a snapshot of your VM at the end of the last post then restore it just to be on the safe side.
  3. Start the VM.
  4. Map the content folder.
    1. VirtualBox Manager --> Settings --> Shared Folders --> Machine Folders --> (right click) Add Shared Folders
      1. Folder Path: [the path to the files you downloaded]
      2. Folder Name: [fills in automatically]
      3. Auto-mount [checked]
      4. Make Permanent [checked]
    2. Click OK and then OK again to close the Settings dialog.
    3. From within the VM open a Windows Explorer and in the Location field type \\VBOXSVR. You should see your folder listed (mine is listed below, but I don't know what you decided to call yours).
    4. Right-click on shared folder and select Map Network Drive…
      1. Drive: X:
      2. Folder: [should already have \\VBOXSVR\your-folder-name]
      3. Click Finish. Explorer should now list any files and folders in your shared folder.

The Long Version

  1. Start VirtualBox. Do not start the VM.

  2. If you took a snapshot of your VM at the end of the last post then restore it just to be on the safe side.

    1. Click Snapshots (upper right-hand button)
    2. Right click on TechNetVM-clean-install and select Restore Snapshot.
    3. Uncheck Create a Snapshot of the Current Machine State and click Restore.

  3. Start the VM. The VM will display a dialog stating that the VM is being restored. It will complete in a few seconds.

  4. Map the content folder.

    1. VirtualBox Manager --> Settings --> Shared Folders --> Machine Folders --> (right click) Add Shared Folders

      1. Folder Path: [the path to the files you downloaded]
      2. Folder Name: [fills in automatically]
      3. Auto-mount [checked]
      4. Make Permanent [checked]

    2. Click OK and then OK again to close the Settings dialog.

    3. From within the VM open a Windows Explorer and in the Location field type \\VBOXSVR. You should see your folder listed (mine is listed below, but I don't know what you decided to call yours).

    4. Right-click on shared folder and select Map Network Drive…

      1. Drive: X:

      2. Folder: [should already have \\VBOXSVR\your-folder-name]

      3. Click Finish. Explorer should now list any files and folders in your shared folder.

It is good to see a folder with content...in my case one file and folders with files.

Once again, high-fives all around. I recommend taking a snapshot (I called my new snapshot TechNetVM-mapping-content-folder-complete).

So far, 4 posts and we still haven't indexed anything. Time to do something about that. Let's configure the connector and see what all the hubbub is about.

Next: Indexing the files (finally!)