Click here to Skip to main content
15,891,423 members
Articles / Web Development / ASP.NET

Image and Location Search(aroo)

Rate me:
Please Sign up or sign in to vote.
4.96/5 (28 votes)
11 Jun 2008CPOL12 min read 203.3K   2.5K   76  
Index your website (including images and geographic data), search and display results in Google Earth.
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Searcharoo.Common
{
    /// <summary>
    /// Used solely by the <see cref="Catalog"/> class to XmlSerialize the index
    /// to disk when binary serialization will not work due to Trust level issues.
    /// </summary>
    [Serializable]
    public class CatalogWordFile
    {
        #region Private Fields: _text, _fileIds
        private string _text;
        private List<int> _fileIds = new List<int>();
        #endregion

        /// <summary>
        /// The word that has been indexed
        /// </summary>
        [XmlElement("t")]
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }
        /// <summary>
        /// The 'generated identifiers' of the File objects associated with the Word
        /// </summary>
        [XmlElement("i")]
        public List<int> FileIds
        {
            get { return _fileIds; }
            set { _fileIds = value; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
-- ooo ---
www.conceptdevelopment.net
conceptdev.blogspot.com
www.searcharoo.net
www.recipenow.net
www.racereplay.net
www.silverlightearth.com

Comments and Discussions